Skip to content

Commit

Permalink
Autocomplete: fix suggestion error when textarea (#18478)
Browse files Browse the repository at this point in the history
  • Loading branch information
roojay520 committed Apr 10, 2020
1 parent 3b7f95a commit 624c1e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/autocomplete/src/autocomplete-suggestions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
mounted() {
this.$parent.popperElm = this.popperElm = this.$el;
this.referenceElm = this.$parent.$refs.input.$refs.input;
this.referenceElm = this.$parent.$refs.input.$refs.input || this.$parent.$refs.input.$refs.textarea;
this.referenceList = this.$el.querySelector('.el-autocomplete-suggestion__list');
this.referenceList.setAttribute('role', 'listbox');
this.referenceList.setAttribute('id', this.id);
Expand Down

0 comments on commit 624c1e9

Please sign in to comment.