Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report]: 节点文字编辑时,失去焦点事件(text:blur)未触发 #2025

Open
Zhang-Huafeng opened this issue Dec 20, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Zhang-Huafeng
Copy link

Zhang-Huafeng commented Dec 20, 2024

<title>Document</title> <style> #container { width: 500px; height: 500px; } </style>
<script src="https://cdn.jsdelivr.net/npm/@logicflow/core/dist/index.min.js"></script>
<script>
  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);
</script>
@Zhang-Huafeng Zhang-Huafeng added the bug Something isn't working label Dec 20, 2024
Copy link

该 issue 作为 Bug Report 所提供信息的不充分,被暂时关闭了。请修改 issue 以提供最小可复现示例(可以通过以下方式:1. 在任意在线编码平台如 codesanbox 编写示例。将其保存到自己空间,然后贴上链接。2. 在自己 github 中创建一个最简单的示例,然后贴上 github 链接。3. 删除项目中的 node_modules 部分,打包项目,并拖拽到 issue 输入框中上传(或提供远程可下载地址))来重启 issue。

1 similar comment
Copy link

该 issue 作为 Bug Report 所提供信息的不充分,被暂时关闭了。请修改 issue 以提供最小可复现示例(可以通过以下方式:1. 在任意在线编码平台如 codesanbox 编写示例。将其保存到自己空间,然后贴上链接。2. 在自己 github 中创建一个最简单的示例,然后贴上 github 链接。3. 删除项目中的 node_modules 部分,打包项目,并拖拽到 issue 输入框中上传(或提供远程可下载地址))来重启 issue。

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 20, 2024
@DymoneLewis DymoneLewis reopened this Dec 20, 2024
@DymoneLewis DymoneLewis self-assigned this Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants