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

Select menu bind:value does not work to dynamically set options/values #476

Closed
ccampbell opened this issue Apr 12, 2017 · 3 comments
Closed
Labels

Comments

@ccampbell
Copy link

I could have sworn this worked at some point, but I went back through different svelte versions and it seems to have always been an issue:

https://svelte.technology/repl?version=1.14.1&gist=155b2b84c2c9084986fd169a50c2b3dc

Changing the bind:value="something" to value="{{ something }}" does seem to work:

https://svelte.technology/repl?version=1.14.1&gist=a82840366f505969aa34964c6a87b7b1

@Rich-Harris
Copy link
Member

Fixed in 1.15 — thanks

@ccampbell
Copy link
Author

Thanks! There is actually one more case that is somewhat related that still seems to be broken (if the select menu itself is also drawn out for the first time when the options are set):

https://svelte.technology/repl?version=1.15.0&gist=cf41191419cde617795ba4bb595d2ad0

@ccampbell
Copy link
Author

Cool that last comment seems to have been fixed with #502

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

No branches or pull requests

2 participants