mirror of https://github.com/sveltejs/svelte
validate ref callees (#686)
parent
5c4905a595
commit
c1f34e3e2a
@ -0,0 +1,8 @@
|
||||
[{
|
||||
"message": "'refs.inputx' does not exist (did you mean 'refs.input'?)",
|
||||
"pos": 36,
|
||||
"loc": {
|
||||
"line": 2,
|
||||
"column": 18
|
||||
}
|
||||
}]
|
@ -0,0 +1,2 @@
|
||||
<input ref:input>
|
||||
<button on:click='refs.inputx.focus()'>focus input</button>
|
@ -0,0 +1,2 @@
|
||||
<input ref:input>
|
||||
<button on:click='refs.input.focus()'>focus input</button>
|
@ -0,0 +1 @@
|
||||
[]
|
Loading…
Reference in new issue