Skip to content

Commit

Permalink
fix(autocomplete): it's abount click clear button and the drop-down b…
Browse files Browse the repository at this point in the history
…ox does not appear

fix #21377,fix #19050, fix #18970
  • Loading branch information
tomieric committed Oct 20, 2021
1 parent ae71d7d commit 5575388
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/docs/zh-CN/input.md
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ export default {
v-model="state"
:fetch-suggestions="querySearchAsync"
placeholder="请输入内容"
clearable
@select="handleSelect"
></el-autocomplete>
<script>
Expand Down
1 change: 1 addition & 0 deletions packages/autocomplete/src/autocomplete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@
this.suggestions = [];
return;
}
this.activated = true;
this.debouncedGetData(value);
},
handleChange(value) {
Expand Down

0 comments on commit 5575388

Please sign in to comment.