DataTables / DataTables/RowReorder

Row sequence corrupted when reordering a row on a filtered table and pressing Ctrl-z

Open
#12 1 comment 0 reactions 0 assignees View on GitHub

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

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.