multiselect
multiselect copied to clipboard
selectAll function doesn't work with infinite true
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
Step to reproduction:
- Open multiselect
- Select all (using the checkbox)
- It only selected the 10 options, which is the visible options only. Expected is to select all the entire options
- And i got a strange behavior. After 10 selected, uncheck the select all checkbox, then close the multiselect
- Open and select all again, then it will select all the options properly