simple-svelte-autocomplete icon indicating copy to clipboard operation
simple-svelte-autocomplete copied to clipboard

Object comparison breaks down in dropdown

Open srcrip opened this issue 2 years ago • 0 comments

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?

srcrip avatar Jul 16 '22 14:07 srcrip