mirror of https://github.com/sveltejs/svelte
fix input value 0 for ssr (#6458)
parent
23f8f4ba6d
commit
2818567925
@ -1,3 +1,4 @@
|
||||
export default {
|
||||
html: '<input type="text">'
|
||||
html: '<input type="text">',
|
||||
ssrHtml: '<input type="text" value="">'
|
||||
};
|
||||
|
@ -0,0 +1 @@
|
||||
<input value=''>
|
@ -0,0 +1,5 @@
|
||||
<script>
|
||||
export let foo = '';
|
||||
</script>
|
||||
|
||||
<input bind:value={foo} >
|
@ -0,0 +1,2 @@
|
||||
<input value="0" type="number">
|
||||
<input value="0" type="range">
|
@ -0,0 +1,6 @@
|
||||
<script>
|
||||
export let foo = 0;
|
||||
</script>
|
||||
|
||||
<input type="number" bind:value={foo} >
|
||||
<input type="range" bind:value={foo} >
|
Loading…
Reference in new issue