You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently I want to sort the options in order to show the selected options first in the list and then the other available options.
My code for this task is:
After checking the console logs on each render the 'options' and the 'selected' values are being updated, but the option list of the Multiselect is lagging one render behind. Basically is not changing the order of the options visually.
Strangely enough this works perfectly for onRemove but fails to rerender after onSelect.
In my test case I have 1 preselected option,, once I select a second option it doesn't show it sorted but the value is really updated in the logs. Once I close the dropdown by clicking outside and then opening the dropdown again it is shown sorted. But this is a problem, because ofc the user wouldn't like to have to reopen the dropdown on each and every select he makes.
Is this a bug? I think it's a bug and it's a deal breaker for the project I have implemented the library in.
Is there a way I can fix this or can someone check the issue and release a bug fix?
The text was updated successfully, but these errors were encountered:
Currently I want to sort the options in order to show the selected options first in the list and then the other available options.
My code for this task is:
The props are used like so:
After checking the console logs on each render the 'options' and the 'selected' values are being updated, but the option list of the Multiselect is lagging one render behind. Basically is not changing the order of the options visually.
Strangely enough this works perfectly for onRemove but fails to rerender after onSelect.
In my test case I have 1 preselected option,, once I select a second option it doesn't show it sorted but the value is really updated in the logs. Once I close the dropdown by clicking outside and then opening the dropdown again it is shown sorted. But this is a problem, because ofc the user wouldn't like to have to reopen the dropdown on each and every select he makes.
Is this a bug? I think it's a bug and it's a deal breaker for the project I have implemented the library in.
Is there a way I can fix this or can someone check the issue and release a bug fix?
The text was updated successfully, but these errors were encountered: