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 does not get value of prop right after rendering #1666

Closed
MNITD opened this issue Aug 18, 2018 · 1 comment · Fixed by #1681
Closed

Select does not get value of prop right after rendering #1666

MNITD opened this issue Aug 18, 2018 · 1 comment · Fixed by #1681

Comments

@MNITD
Copy link

MNITD commented Aug 18, 2018

I am trying to interact with select tag by setting value with prop and getting it with on change event.

I found some unexpected behavior:

  1. After rendering, select does not get the value of prop, value of select changing only after changing the value of prop
  2. The same situation with prop from store.

On the other hand if it is two-way binding, select is rendered with proper value.

https://svelte.technology/repl?version=2.11.0&gist=9bfb91057035f3fa96e0cacd0f122b63

@Rich-Harris
Copy link
Member

fixed in 2.12.1. thanks!

kaisermann pushed a commit to kaisermann/svelte that referenced this issue Sep 19, 2018
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

Successfully merging a pull request may close this issue.

2 participants