Przeglądaj źródła

handle v-model on password input field on ie9 (fix #5250) (#5253)

katashin 9 lat temu
rodzic
commit
70db229a49
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/platforms/web/runtime/directives/model.js

+ 1 - 1
src/platforms/web/runtime/directives/model.js

@@ -28,7 +28,7 @@ export default {
       if (isIE || isEdge) {
         setTimeout(cb, 0)
       }
-    } else if (vnode.tag === 'textarea' || el.type === 'text') {
+    } else if (vnode.tag === 'textarea' || el.type === 'text' || el.type === 'password') {
       el._vModifiers = binding.modifiers
       if (!binding.modifiers.lazy) {
         if (!isAndroid) {