multiselect icon indicating copy to clipboard operation
multiselect copied to clipboard

selectAll function doesn't work with infinite true

Open faizaaulia opened this issue 1 year ago • 0 comments

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

faizaaulia avatar Oct 02 '24 08:10 faizaaulia