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

fix(event): emit events for extended shape #5290

Merged
merged 1 commit into from
Jul 10, 2023
Merged

fix(event): emit events for extended shape #5290

merged 1 commit into from
Jul 10, 2023

Conversation

pearmini
Copy link
Member

@pearmini pearmini commented Jul 10, 2023

  • fix: text标记无法绑定事件 #5279
  • 存在问题:Text 是一个 Custom Shape,target 并没有 className 和 markType 属性, 只有顶层的 group 有这两个属性。
  • 解决办法:向上查找 className 为 element 的节点。

@pearmini pearmini merged commit 873bec7 into v5 Jul 10, 2023
@pearmini pearmini deleted the fix/text-click branch July 10, 2023 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

text标记无法绑定事件
2 participants