-
Notifications
You must be signed in to change notification settings - Fork 37
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
[Bug] Selected options stays visible in dropdown if options are objects #234
Comments
Interesting edge case. The simplest workaround would be to |
For my particular use case I have 10s maybe lower 100s options with simple structure: interface CustomOption {
label: string
value: string
disabled: boolean,
order: number
} |
@tbydza Had a change of mind. A |
I define options using objects and after #217 there is problem with referential equality.
Data for my options and selected come from 2 different sources, but they have same properties.
Each option is identified by the label.
Because of that dropdown used to show only not selected options.
But change of this line caused that these option are no longer equal and they appear to be different options with same label.
And so the selected options stay in dropdown.
Example with screenshots
Can you please fix this, or provide some workaround?
The text was updated successfully, but these errors were encountered: