Skip to content

Commit

Permalink
fix(forms): fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Dec 29, 2015
1 parent 4a22523 commit 50094a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/en/forms.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ When using Vuex in strict mode, it could be a bit tricky to use `v-model` on a p
<input v-model="obj.message">
```

Assuming `obj` is a computed property that returns an Object from the store, the `v-model` here will attempt to directly mutate `obj.message` when the user types in the input. In strict mode, this will result in en error because the mutation is not performed inside an explicit Vuex mutation handler.
Assuming `obj` is a computed property that returns an Object from the store, the `v-model` here will attempt to directly mutate `obj.message` when the user types in the input. In strict mode, this will result in an error because the mutation is not performed inside an explicit Vuex mutation handler.

The "Vuex way" to deal with it is binding the `<input>`'s value and call an action on the `input` or `change` event:

Expand Down

0 comments on commit 50094a6

Please sign in to comment.