DataTables / DataTables/RowReorder
Row sequence corrupted when reordering a row on a filtered table and pressing Ctrl-z
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 23
- Forks
- 27
- PR merge metrics
- No merged PRs in 30d
Description
We've noticed that if you filter a table and drag a row, but press Ctrl-z whilst doing so, it corrupts the row sequence or at least the rendering of it.
Pressing Ctrl-z whilst dragging a row changes the search input (basically calling undo on the input). When dropping a row into a new position the table ends up with duplicate values in the sequence column.
Test case
- Go to example: https://datatables.net/extensions/rowreorder/examples/initialisation/restrictedOrdering.html
- Enter the search text: 85
- Drag row 20 down a couple of places and keep the mouse down
- Press Ctrl-z once
- Release the mouse, dropping the row into the new position
Expected: The row should be in the new position.
Actual: The row has not moved and the sequence column contains a duplicate value of 20.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the case in the restrictedOrdering.html example using the listed filter, drag, Ctrl-z, and drop steps. Trace how the row reorder gesture interacts with the search input and sequence rendering. Done means the row moves to the new position without duplicate sequence values after this interaction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100