File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed
packages/svelte/tests/runtime-runes/samples/hydrate-modified-input-group Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export default test({
12
12
13
13
assert . htmlEqual (
14
14
target . innerHTML ,
15
- '<input type="radio" value="1"><input type="radio" value="2"><input type="radio" value="3">\n2'
15
+ '<input name="foo" type="radio" value="1"><input name="foo" type="radio" value="2"><input name="foo" type="radio" value="3">\n2'
16
16
) ;
17
17
}
18
18
} ) ;
Original file line number Diff line number Diff line change 3
3
</script >
4
4
5
5
{#each [1 , 2 , 3 ] as number }
6
- <input type ="radio" value ={number } bind:group ={value }>
6
+ <input type ="radio" name = "foo" value ={number } bind:group ={value }>
7
7
{/each }
8
8
9
9
{value }
Original file line number Diff line number Diff line change @@ -4,8 +4,11 @@ import App from './App.svelte';
4
4
const root = document . getElementById ( 'root' ) ! ;
5
5
const render = root . firstChild ?. nextSibling ? hydrate : mount ;
6
6
7
- const component = render ( App , {
8
- target : document . getElementById ( 'root' ) !
9
- } ) ;
10
- // @ts -ignore
11
- window . unmount = ( ) => unmount ( component ) ;
7
+ setTimeout ( ( ) => {
8
+ const component = render ( App , {
9
+ target : document . getElementById ( 'root' ) !
10
+ } ) ;
11
+ // @ts -ignore
12
+ window . unmount = ( ) => unmount ( component ) ;
13
+ } , 2000 )
14
+
You can’t perform that action at this time.
0 commit comments