mirror of https://github.com/sveltejs/svelte
fix: keep boolean attributes with an empty string value when rendering attribute objects on the server (#18721)
`<input disabled="" {...props}>` and any other boolean attribute written as `""` now renders on the server the way it does on the client and in plain markup.
pull/18722/head
parent
2e8b57bc58
commit
7c6f36aa92
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: keep boolean attributes with an empty string value when rendering attribute objects on the server
|
||||||
@ -0,0 +1,6 @@
|
|||||||
|
<input disabled="">
|
||||||
|
<input hidden="">
|
||||||
|
<input>
|
||||||
|
<select multiple="">
|
||||||
|
<option selected="" value="a">A</option>
|
||||||
|
</select>
|
||||||
@ -0,0 +1,10 @@
|
|||||||
|
<script>
|
||||||
|
const props = {};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<input disabled="" {...props} />
|
||||||
|
<input hidden="" {...props} />
|
||||||
|
<input disabled={false} {...props} />
|
||||||
|
<select multiple="" value="a">
|
||||||
|
<option value="a">A</option>
|
||||||
|
</select>
|
||||||
Loading…
Reference in new issue