Commit f21661f
fix: disable native browser drag on links during sidebar edit mode
Browser natively makes <a> tags draggable, which competes with SortableJS
drag handling and causes sporadic behavior — sometimes the browser's
native link drag activates instead of SortableJS.
Fix: set draggable="false" and prevent dragstart events on nav links
when entering edit mode, restoring defaults when exiting.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 11d3085 commit f21661f
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
477 | 477 | | |
478 | 478 | | |
479 | 479 | | |
480 | | - | |
| 480 | + | |
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
484 | 487 | | |
485 | 488 | | |
486 | 489 | | |
| |||
497 | 500 | | |
498 | 501 | | |
499 | 502 | | |
500 | | - | |
| 503 | + | |
| 504 | + | |
501 | 505 | | |
502 | 506 | | |
| 507 | + | |
| 508 | + | |
503 | 509 | | |
504 | 510 | | |
505 | 511 | | |
| |||
513 | 519 | | |
514 | 520 | | |
515 | 521 | | |
516 | | - | |
| 522 | + | |
517 | 523 | | |
518 | 524 | | |
| 525 | + | |
| 526 | + | |
519 | 527 | | |
520 | 528 | | |
521 | 529 | | |
| |||
0 commit comments