-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Bound <select>
not initialized to proper value when using <option>
s with implicit values
#928
Comments
Issue found by @petterek. While this is easily worked around, it does seem to be undesirable behavior on Svelte's part. |
There's actually another subtle bug here: REPL vs REPL. In the first one, when you change the value, it's setting I think the correct thing to do here is to reuse the element's children as its |
Reuse <option> children as value attribute, if there isn't one
Fixed in 1.42 |
Compare REPL vs REPL.
Svelte should probably treat a
value
-less<option>
as being the same as one where thevalue
is set to the same as its content.The text was updated successfully, but these errors were encountered: