Commit a2fd24e0 authored by baiyaaaaa's avatar baiyaaaaa Committed by cinwell.li

fix autocomplete dropdown reference element (#2092)

parent 593acacd
......@@ -55,7 +55,7 @@
mounted() {
this.popperElm = this.$el;
this.referenceElm = this.$parent.$el;
this.referenceElm = this.$parent.$refs.input.$refs.input;
},
created() {
......
<template>
<div class="el-autocomplete" v-clickoutside="handleBlur">
<el-input
ref="input"
:value="value"
:disabled="disabled"
:placeholder="placeholder"
......@@ -69,7 +70,7 @@
},
watch: {
suggestionVisible(val) {
this.broadcast('ElAutocompleteSuggestions', 'visible', [val, this.$el.offsetWidth]);
this.broadcast('ElAutocompleteSuggestions', 'visible', [val, this.$refs.input.$refs.input.offsetWidth]);
}
},
methods: {
......
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