Skip to content

Commit 7ca58b6

Browse files
committed
small tweak
1 parent a9417e4 commit 7ca58b6

File tree

1 file changed

+1
-1
lines changed
  • src/platforms/web/runtime/directives

1 file changed

+1
-1
lines changed

src/platforms/web/runtime/directives/model.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export default {
6060
// option in the DOM.
6161
const needReset = el.multiple
6262
? binding.value.some(v => hasNoMatchingOption(v, el.options))
63-
: binding.value === binding.oldValue ? false : hasNoMatchingOption(binding.value, el.options)
63+
: binding.value !== binding.oldValue && hasNoMatchingOption(binding.value, el.options)
6464
if (needReset) {
6565
trigger(el, 'change')
6666
}

0 commit comments

Comments
 (0)