We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi :)
<script> import AutoComplete from "simple-svelte-autocomplete" let selectedColor; async function searchColor(keyword) { return [ { id:1,color:"White" }, { id:2,color:"Black" }, ] } </script> <AutoComplete searchFunction={searchColor} bind:selectedItem={selectedColor} labelFieldName="color" valueFieldName="id" onChange="{() => console.log(selectedColor)}" />
selectedColor = { id:1,color:"White" } instead of selectedColor = 1
REPL : https://svelte.dev/repl/b6a3421f9a574c148ba740d88e75ab81?version=4.2.9
Thank you
The text was updated successfully, but these errors were encountered:
Yes this is wrong in the readme I think, you should do bind:value={selectedColor} instead.
bind:value={selectedColor}
This example in the read me makes it look like you can use valueFieldName with selectedItem
valueFieldName
selectedItem
Sorry, something went wrong.
Thank you @Astronautilus14
No branches or pull requests
Hi :)
selectedColor = { id:1,color:"White" }
instead of selectedColor = 1
REPL : https://svelte.dev/repl/b6a3421f9a574c148ba740d88e75ab81?version=4.2.9
Thank you
The text was updated successfully, but these errors were encountered: