mirror of https://github.com/sveltejs/svelte
fix: ignore value attribute on select during SSR (#11724)
The value attribute on select elements does nothing - it does not influence the initial value (in SSR that's the job of the `selected` attribute on an option element), updating it does not influence the current value either. Instead of rendering it out and then removing it on hydration (which is costly because the mutation causes work) we just don't render it in SSR. No test/changeset because no change in behavior.pull/11726/head
parent
6d2f1a48b4
commit
d590cd8bea
Loading…
Reference in new issue