-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Dropdown's useOptionAsValue does not take precedence #7308
Comments
This will work, you shouldn't use |
Is the latest not the same with 10.8.3? |
what we have seen on StackBlitz is |
Agreed. @melloware |
Thanks for your quick response, there is something I do not understand, here is the code from dropdown
the code shows that useOptionAsValue should always take precedence |
It is already. You can try it with or without |
your does work, I was wondering why, it does not make sense according to the code |
Which code are you talking about ? Stackblitz link or codebase ? |
the code snippet posted above from code base, props.useOptionAsValue should take precedence:
|
Like i said it already has precedence. It is placed top of the function and has return. |
Sorry, I misunderstood, could my stackbliz be because of cache that does not load the latest package |
It can be. |
thank you so much! |
You're welcome. |
Describe the bug
I use dropdown to display a list of data, in the onChange event, the event.value is always property's ID instead of whole option object when useOptionAsValue presents
Reproducer
https://stackblitz.com/edit/vitejs-vite-rrgaoc?file=src%2FApp.tsx
System Information
Steps to reproduce the behavior
select one item from dropdown, it display option's ID when both useOptionAsValue and optionValue present
Expected behavior
when both useOptionAsValue and optionValue present, useOptionAsValue should take precedence and select value should be the whole option object
The text was updated successfully, but these errors were encountered: