Commit 69ad8a6
authored
fix: DragProvider drag end index assignment (#411)
## Description
Moves the assignment of fromIndex and toIndex earlier in the drag end
handler to fix incorrect fromIndex value.
Previously, fromIndex was always -1 when using the onDragEnd callback
because the state was being reset too early. This change ensures that
the correct indices are captured before any cleanup happens.1 parent 56f0ef3 commit 69ad8a6
1 file changed
Lines changed: 4 additions & 3 deletions
File tree
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
460 | 464 | | |
461 | 465 | | |
462 | 466 | | |
| |||
489 | 493 | | |
490 | 494 | | |
491 | 495 | | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | 496 | | |
496 | 497 | | |
497 | 498 | | |
| |||
0 commit comments