Browse Source

fix checkbox not trigger input event bug

baiyaaaaa 8 years ago
parent
commit
ba9a5d5ae3
1 changed files with 1 additions and 3 deletions
  1. 1 3
      packages/checkbox/src/checkbox.vue

+ 1 - 3
packages/checkbox/src/checkbox.vue

@@ -77,10 +77,8 @@
 
             isLimitExceeded === false &&
             this.dispatch('ElCheckboxGroup', 'input', [val]);
-
-          } else if (this.value !== undefined) {
-            this.$emit('input', val);
           } else {
+            this.$emit('input', val);
             this.selfModel = val;
           }
         }