You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a table with enough rows to make it scrollable, when ticking a check box (added with the checkboxColumn), the scroll position moves to a totally difference position and selects a totally different row to the one that has been checked.
If it provides any help, I managed to implement an undesirable workaround in an attempt to understand the issue.
I copied the checkboxColumn implementation from here and made the amendments below. Seems the issue is related to timing of state updates.
In a table with enough rows to make it scrollable, when ticking a check box (added with the
checkboxColumn
), the scroll position moves to a totally difference position and selects a totally different row to the one that has been checked.Versions used:
Steps to reproduce:
data
array at least 15 times, so we're left with a scrollable table.Code:
Issue demo:
https://github.com/nick-keller/react-datasheet-grid/assets/141892564/a8eaeff8-7026-44ba-be5b-99c870a5e2f6
If it provides any help, I managed to implement an undesirable workaround in an attempt to understand the issue.
I copied the
checkboxColumn
implementation from here and made the amendments below. Seems the issue is related to timing of state updates.Added:
Modified:
The text was updated successfully, but these errors were encountered: