Update text.md

Remove inaccurate description.

Not sure if this was a limitation on a previous version. but calling this without a callback function just worked in the tutorial page
pull/7533/head
Lucas Rosa Galego 4 years ago committed by GitHub
parent ab48fbadb3
commit 76b7d1e5a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -15,9 +15,7 @@ Just as you can bind to DOM elements, you can bind to component instances themse
Now we can programmatically interact with this component using `field`.
```html
<button on:click="{() => field.focus()}">
<button on:click="{field.focus}">
Focus field
</button>
```
> Note that we can't do `{field.focus}` since field is undefined when the button is first rendered and throws an error.

Loading…
Cancel
Save