Explorar el Código

no need to return text in getValue for v-model select (fix #3729)

Evan You hace 9 años
padre
commit
9566b3358f
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

@@ -109,7 +109,7 @@ function hasNoMatchingOption (value, options) {
 function getValue (option) {
   return '_value' in option
     ? option._value
-    : option.value || option.text
+    : option.value
 }
 
 function onCompositionStart (e) {