DataTables / DataTables/RowReorder

Bug when using rowreorder extension together with the scroller extension

Open
#14 4 comments 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

Hello,

there is a bug when using rowreorder extension together with the scroller extension.
Example to reproduce bug:
https://jsfiddle.net/99358x8p/10/

To reproduce the bug use the following steps:

  1. Drag first row to a position greater than row 30.
  2. Scroll up to the top row.
  3. You can see identical and wrong sequence numbers everywhere. The ordering/data is broken.

It works if you only reorder the row to a near position. At what distance the bug occurs depends on the scrollY value of the datatable. With smaller scrollY value the bug occurs sooner.

Is there any workaround?

Many thanks for any answer. Best regards.

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

Start with the linked JSFiddle reproduction and inspect how RowReorder interacts with Scroller when moving the first row beyond row 30. Verify the ordering and sequence numbers after scrolling back to the top, and consider the issue resolved when long-distance reordering preserves correct data and displayed sequence numbers.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.