forked from vuejs/vue
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(v-model): update model correctly when input event is bound
Use the "input" event instead of "change" when listening for changes to the selection state since the "input" event will always fire before the "change" event. This avoids an issue where a user binds to the "input" event with "v-bind" and causes the component to update and set its model value back to the value of the select before it has received the new selection value. Fixes vuejs#6690
- Loading branch information
1 parent
1780b1f
commit bbd13af
Showing
3 changed files
with
45 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters