-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TreeList getSelectedState fails with enabled virtual scrolling #1535
Comments
The same issue is observed with the Grid |
Reported again in Ticket ID: 1619793 |
For the Grid, I could create a workaround by adding 'skip' to the GridSelectionChangeEvent's start and endRowIndex:
Working example: https://codesandbox.io/s/stoic-euclid-3t4ckp?file=/app/main.tsx |
Reported again in #2288 |
For the Grid, there is a regression between versions 7.3.0 and 7.4.0 For 7.3.0 it was working - https://stackblitz.com/edit/react-kenryc-hgt7wj?file=package.json For 7.4.0 it stopped working - https://stackblitz.com/edit/react-kenryc-amrqfp?file=package.json |
Fixed in dev version 8.1.0-develop.19. |
The aria-rowIndex and data-grid-row-index are wrongly set when you scroll the TreeList to render new view when virtual scrolling is enabled. This causes the getSelectedState to return the wrong data key value, thus creating a wrong selected state:
As a temporary workaround, the data key values can be added manually to the TR element and a custom logic for the selected state can be applied:
The text was updated successfully, but these errors were encountered: