antvis/G6





The issue has been closed
内置的 behavior 会移除用户自定义state #6154
abc3660170 posted onGitHub
Describe the bug / 问题描述
图形配置一个内置的behavior:click-select, 同时给节点增加一个自定义state: important,当点击这个节点再点击画布空白区域,节点会移除掉我增加的 important state。 当我按住SHIFT多选且第一个选中节点是未配置important state的节点,第二个节点是配置important state的节点时,important 的状态就不会丢失。
Reproduction link / 重现链接
https://stackblitz.com/edit/react-vqdqdc-svjpyr?file=index.js
Steps to Reproduce the Bug or Issue / 重现步骤
No response
G6 Version / G6 版本
🆕 5.x
Operating System / 操作系统
Windows
Browser / 浏览器
Chrome
Additional context / 补充说明
No response