Skip to content

Commit

Permalink
Autocomplete: fix suggestion error when textarea (ElemeFE#18478)
Browse files Browse the repository at this point in the history
  • Loading branch information
roojay520 authored and BANKA2017 committed Mar 16, 2021
1 parent 6d4d9ca commit a4632dd
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 a4632dd

Please sign in to comment.