Evan You hace 9 años
padre
commit
7ca58b6cdf
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/platforms/web/runtime/directives/model.js

+ 1 - 1
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')
       }