Skip to content
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

Object comparison breaks down in dropdown #180

Open
srcrip opened this issue Jul 16, 2022 · 0 comments
Open

Object comparison breaks down in dropdown #180

srcrip opened this issue Jul 16, 2022 · 0 comments

Comments

@srcrip
Copy link

srcrip commented Jul 16, 2022

Check out this example where the dropdown properly reflects the selected value:
https://svelte.dev/repl/6f872d21bd7c49a6b25ab50a37011b31?version=3.49.0

And then this one where it does not:
https://svelte.dev/repl/cbab93a181ff4c6687f6adc147e66ded?version=3.49.0

It seems like object comparison is just happening using == or === when it needs to have a more complex comparison? Since there's already logic to select out the 'valueFieldName' and many people are going to be using a unique id there, maybe it can default to that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant