소스 검색

Merge pull request #763 from Leopoldthecoder/select-input-height

Select: fix an input initial height bug
baiyaaaaa 8 년 전
부모
커밋
a76714dece
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      packages/select/src/select.vue

+ 3 - 3
packages/select/src/select.vue

@@ -223,6 +223,9 @@
           } else {
             this.currentPlaceholder = this.cachedPlaceHolder;
           }
+          this.$nextTick(() => {
+            this.resetInputHeight();
+          });
           if (this.selectedInit) {
             this.selectedInit = false;
             return;
@@ -232,9 +235,6 @@
 
           this.$emit('input', result);
           this.$emit('change', result);
-          this.$nextTick(() => {
-            this.resetInputHeight();
-          });
           if (this.filterable) {
             this.query = '';
             this.hoverIndex = -1;