mirror of https://github.com/sveltejs/svelte
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: https://github.com/sveltejs/svelte/issues/6873pull/6874/head
parent
883c47b45d
commit
ace6bc0354
Loading…
Reference in new issue