Skip to content
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

Shift + click range row selection cache the last selection even user deselect all the rows. #4661

Open
Siddharth-Pandey-tfs opened this issue Jan 2, 2025 · 0 comments
Labels
Possible Bug A possible bug that needs investigation

Comments

@Siddharth-Pandey-tfs
Copy link

Describe the bug
When a user selects rows using Shift + Click and the selectableRowsRangeMode property is set to "click," it selects a range of rows. However, if the user deselects all rows (calling deselectRow) and then uses Shift + Click again, the Tabulator remembers the last selected row and selects a range of rows accordingly. I couldn't find a way to clear Shift +click selection without refreshing the page.

Tabulator Info

To Reproduce
A step by step guide to recreate the issue in your JS Fiddle or Codepen:

  1. Select the first row using shift click
  2. Select the fourth row using shift click
  3. It selects all first to fourth rows, that's expected
  4. Now deselect all the rows by clicking deselect all
  5. Now select the ninth row using shift +click, it selects from 1 to 9 rows rather just selecting ninth row.

Expected behavior
It should only select the ninth row, rather all the rows from one to nine.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: window 11
  • chrome
  • Version 121.0.6167.140 (Official Build) (64-bit)

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@Siddharth-Pandey-tfs Siddharth-Pandey-tfs added the Possible Bug A possible bug that needs investigation label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Possible Bug A possible bug that needs investigation
Projects
None yet
Development

No branches or pull requests

1 participant