antvis / X6

🚀 JavaScript diagramming library that uses SVG and HTML for rendering.
https://x6.antv.antgroup.com
MIT License
5.72k stars 1.7k forks source link

框选后框不跟着组件移动 #4366

Open hyl1374961656 opened 3 months ago

hyl1374961656 commented 3 months ago

Describe the bug

image 先框选world然后删除hello再框选rect然后删除world后回来移动rect就会出现这种情况

Your Example Website or App

https://codesandbox.io/s/p4h232?file=/App.tsx

Steps to Reproduce the Bug or Issue

https://codesandbox.io/s/p4h232?file=/App.tsx 先框选world然后删除hello再框选rect然后删除world后回来移动rect就会出现这种情况

Expected behavior

框选跟着组件一起移动

Screenshots or Videos

No response

Platform

windows

Additional context

No response

hyl1374961656 commented 3 months ago

新的复现地址:https://codesandbox.io/s/little-firefly-fw7znt?file=/App.tsx