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
DataTable multi-select using shift+click is broken when sorting by a column. I sort by column B then click on element 0, shift_click down to element 5 and it doesn't select elements 0-5 it selects what I believe to be elements 0-5 of the DEFAULT sorting order, which to the end user looks almost like its randomly selecting elements.
Sort by a column so that it is not in the default sorting order
Click an element
Shift+click another element
Note that it is not selecting the rows expected
Expected behavior
Select the rows in the range selected based on the displayed row order.
The text was updated successfully, but these errors were encountered:
nikcich
changed the title
Replace_With_Component_Name: Brief_Bug_Description
DataTables Multiselect Broken With Column Sorting
Aug 30, 2024
melloware
added
Type: Bug
Issue contains a defect related to a specific component.
and removed
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
labels
Aug 30, 2024
Ive been having this problem too, its a big sticking point in the product im working on. What I did was create a button to put the user into 'selection mode', then disable the reset and disable all sorting on the table while the user can select things. (use a forward ref for resting sorting and remove 'sortable' from column) It doesn't look like this ticket is being worked on any time soon, so this workaround will have to do.
Describe the bug
DataTable multi-select using shift+click is broken when sorting by a column. I sort by column B then click on element 0, shift_click down to element 5 and it doesn't select elements 0-5 it selects what I believe to be elements 0-5 of the DEFAULT sorting order, which to the end user looks almost like its randomly selecting elements.
2024-08-30.08-14-05.mp4
Reproducer
https://stackblitz.com/edit/vitejs-vite-nvgvfm?file=src%2FApp.jsx
System Information
Steps to reproduce the behavior
Sort by a column so that it is not in the default sorting order
Click an element
Shift+click another element
Note that it is not selecting the rows expected
Expected behavior
Select the rows in the range selected based on the displayed row order.
The text was updated successfully, but these errors were encountered: