Commit a76714de authored by baiyaaaaa's avatar baiyaaaaa Committed by GitHub

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

Select: fix an input initial height bug
parents 23d4dbbc 10373eaf
...@@ -223,6 +223,9 @@ ...@@ -223,6 +223,9 @@
} else { } else {
this.currentPlaceholder = this.cachedPlaceHolder; this.currentPlaceholder = this.cachedPlaceHolder;
} }
this.$nextTick(() => {
this.resetInputHeight();
});
if (this.selectedInit) { if (this.selectedInit) {
this.selectedInit = false; this.selectedInit = false;
return; return;
...@@ -232,9 +235,6 @@ ...@@ -232,9 +235,6 @@
this.$emit('input', result); this.$emit('input', result);
this.$emit('change', result); this.$emit('change', result);
this.$nextTick(() => {
this.resetInputHeight();
});
if (this.filterable) { if (this.filterable) {
this.query = ''; this.query = '';
this.hoverIndex = -1; this.hoverIndex = -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment