Select: fix an input initial height bug

pull/763/head
Leopoldthecoder 2016-11-01 10:29:16 +08:00
parent 65a0250287
commit 10373eaf6c
1 changed files with 3 additions and 3 deletions

View File

@ -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;