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

selectAll function doesn't work with infinite true #428

Open
faizaaulia opened this issue Oct 2, 2024 · 0 comments
Open

selectAll function doesn't work with infinite true #428

faizaaulia opened this issue Oct 2, 2024 · 0 comments

Comments

@faizaaulia
Copy link

Version

  • Vue version: 3
  • Multiselect version: 2.6.7

Description

When using infinite true, the selectAll function select the visible options only, not the entire options. It happened on my case that i performed the selectAll using a checkbox in beforelist template.
For example if there 100 options, then it's limited to show 10 options only, when the selectAll is performed, it will select the 10 options only. Or if the user has been scrolled down first then select all, it will select the visible options only

Demo

Codesandbox link

Step to reproduction:

  1. Open multiselect
  2. Select all (using the checkbox)
  3. It only selected the 10 options, which is the visible options only. Expected is to select all the entire options
  4. And i got a strange behavior. After 10 selected, uncheck the select all checkbox, then close the multiselect
  5. Open and select all again, then it will select all the options properly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant