Skip to content

Commit

Permalink
small tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Oct 12, 2016
1 parent a9417e4 commit 7ca58b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platforms/web/runtime/directives/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default {
// option in the DOM.
const needReset = el.multiple
? binding.value.some(v => hasNoMatchingOption(v, el.options))
: binding.value === binding.oldValue ? false : hasNoMatchingOption(binding.value, el.options)
: binding.value !== binding.oldValue && hasNoMatchingOption(binding.value, el.options)
if (needReset) {
trigger(el, 'change')
}
Expand Down

0 comments on commit 7ca58b6

Please sign in to comment.