Fixes the text in select bindings tutorial to use blur instead of change

pull/5037/head
Gianmarco Simone 5 years ago
parent 12416779e7
commit 0aeb6f34c5

@ -5,7 +5,7 @@ title: Select bindings
We can also use `bind:value` with `<select>` elements. Update line 24: We can also use `bind:value` with `<select>` elements. Update line 24:
```html ```html
<select bind:value={selected} on:change="{() => answer = ''}"> <select bind:value={selected} on:blur="{() => answer = ''}">
``` ```
Note that the `<option>` values are objects rather than strings. Svelte doesn't mind. Note that the `<option>` values are objects rather than strings. Svelte doesn't mind.

Loading…
Cancel
Save