mirror of https://github.com/sveltejs/svelte
validate ref callees (#686)
parent
b0edb477c1
commit
28e5ebac69
@ -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