mirror of https://github.com/sveltejs/svelte
fix: spreading attributes on option value attribute get's replaced by option's inner text (#9125)
fixes #9107 Apart from the problem with the option the same happens with the textarea.pull/9121/head
parent
228dd4d9d7
commit
93b17c85f7
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: recognize option value on spread attribute
|
@ -0,0 +1,7 @@
|
||||
export default {
|
||||
html: `
|
||||
<select>
|
||||
<option value="value" class="option">Label</option>
|
||||
</select>
|
||||
`
|
||||
};
|
@ -0,0 +1,3 @@
|
||||
<select>
|
||||
<option {...{ value: 'value', class: 'option' }}>Label</option>
|
||||
</select>
|
Loading…
Reference in new issue