Browse Source

small tweak

dev
Evan You 8 years ago
parent
commit
7ca58b6cdf
  1. 2
      src/platforms/web/runtime/directives/model.js

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

@ -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')
}

Loading…
Cancel
Save