Commit a99be61
committed
fix(ui): reset node zIndex after drag to prevent edges rendering above nodes
G6's drag-element behavior calls frontElement() on drag start, which
permanently elevates the dragged node's zIndex. When hover-activate
later fires, computeZIndex propagates this elevated value to connected
edges, causing them to render on top of non-neighbor nodes. Reset
zIndex to 0 on drag end to prevent escalation.1 parent 739ca32 commit a99be61
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
| 252 | + | |
253 | 253 | | |
254 | 254 | | |
| 255 | + | |
255 | 256 | | |
256 | 257 | | |
257 | 258 | | |
258 | 259 | | |
259 | 260 | | |
260 | 261 | | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
261 | 268 | | |
262 | 269 | | |
263 | 270 | | |
| |||
0 commit comments