-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
select with spread doesn't work normally #6873
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
Comments
RaiVaibhav
added a commit
to RaiVaibhav/svelte
that referenced
this issue
Oct 22, 2021
This add the selected attr to the dom element and later using the hasAttribute it check if any of the option have selected atrribute then don't set selectedIndex to -1, this way it avoid setting the selectedIndex on mount Fixes: sveltejs#6873
RaiVaibhav
added a commit
to RaiVaibhav/svelte
that referenced
this issue
Oct 22, 2021
This add the selected attr to the dom element and later using the hasAttribute it check if any of the option have selected atrribute then don't set selectedIndex to -1, this way it avoid setting the selectedIndex on mount Fixes: sveltejs#6873
Fixed by #8371 |
Actually I believe this was fixed by #8329. It's already working in v3.56.0: https://svelte.dev/repl/bf2f91391e01472092f3db8c2de94bdc?version=3.56.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The attribute 'selected' of the tag 'option' doesn't work if 'select' tag has spread.
This happens from version 3.42.1 (works here) to 3.42.2 (doesn't works here)
Reproduction
REPL 3.42.2
REPL 3.42.1
Logs
No response
System Info
Severity
blocking an upgrade
The text was updated successfully, but these errors were encountered: