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]: 自定义节点继承时initNodeData触发两次的问题 #1983

Open
Web-Li opened this issue Dec 3, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@Web-Li
Copy link

Web-Li commented Dec 3, 2024

发生了什么?

自定义节点继承棱形节点、矩形节点时,initNodeData执行两次。以rect节点为例,initNodeData方法在BaseNodeModel和RectNodeModel的constructor里面均有调用,实际RectNodeModel的constructor里面只调用super即可,现在调用initNodeData会使得用户继承RectNodeModel时,执行两次initNodeData。同样的问题在其他形状节点、或其他方法调用如setAttributes等也有表现,期待统一处理。
image
image

logicflow/core版本

2.0.6

logicflow/extension版本

2.0.10

logicflow/engine版本

No response

浏览器&环境

Chrome

@Web-Li Web-Li added the bug Something isn't working label Dec 3, 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

1 participant