[Bug Report]: 节点文字编辑时,失去焦点事件(text:blur)未触发
- Dominant language
- TypeScript
- Stars
- 11.7k
- Forks
- 1.4k
- PR merge metrics
- No merged PRs in 30d
Description
Document
#container {
width: 500px;
height: 500px;
}
const data = {
// 节点
nodes: [
{
id: "21",
type: "rect",
x: 100,
y: 200,
text: "rect node",
},
{
id: "50",
type: "circle",
x: 300,
y: 400,
text: "circle node",
},
],
// 边
edges: [
{
type: "polyline",
sourceNodeId: "50",
targetNodeId: "21",
},
],
};
setTimeout(() => {
const lf = new Core.default({
container: document.querySelector("#container"),
background:{
backgroundColor:"rgba(0,0,0,0.5)"
}
});
lf.render(data);
lf.on("text:blur", (e) => {
console.log("触发text:blur", e);
});
}, 2000);
Contributor guide
Assessment
This issue has not been assessed yet.