When I specify the prop :limit="limitValue" on <Multiselect /> and later change the value of limitValue, then the number of displayed options stays the same as was the initial value of limitValue
The use case
I have a multiselect with a lot of options and it's very slow to put all of them into DOM at once. So I did an infinite-scroll approach that increases the limit only when the user scrolls to the bottom of the options list. Users can also search the options, so they might not need more than the limit number of options displayed to access any option. I considered the alternative to do a slice on the options array, but then the search would not work out of the box
Version
Description
When I specify the prop
:limit="limitValue"
on<Multiselect />
and later change the value oflimitValue
, then the number of displayed options stays the same as was the initial value oflimitValue
The use case
I have a multiselect with a lot of options and it's very slow to put all of them into DOM at once. So I did an infinite-scroll approach that increases the
limit
only when the user scrolls to the bottom of the options list. Users can also search the options, so they might not need more than thelimit
number of options displayed to access any option. I considered the alternative to do a slice on the options array, but then the search would not work out of the boxDemo
https://jsfiddle.net/132czqLd/4/