Skip to content

Commit

Permalink
docs: update forms.md (#2582)
Browse files Browse the repository at this point in the history
I think it's misprint and it's fix.
  • Loading branch information
Perlover committed Nov 29, 2023
1 parent 70dfbd1 commit 9370f37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/guide/essentials/forms.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ In addition, `v-model` can be used on inputs of different types, `<textarea>`, a

- `<input>` with text types and `<textarea>` elements use `value` property and `input` event;
- `<input type="checkbox">` and `<input type="radio">` use `checked` property and `change` event;
- `<select>` use `value` as a prop and `change` as an event.
- `<select>` uses `value` as a prop and `change` as an event.

::: tip Note
`v-model` will ignore the initial `value`, `checked` or `selected` attributes found on any form elements. It will always treat the current bound JavaScript state as the source of truth. You should declare the initial value on the JavaScript side, using <span class="options-api">the [`data`](/api/options-state.html#data) option</span><span class="composition-api">[reactivity APIs](/api/reactivity-core.html#reactivity-api-core)</span>.
Expand Down

0 comments on commit 9370f37

Please sign in to comment.