Skip to content

Commit

Permalink
autocomplete: fix change event
Browse files Browse the repository at this point in the history
  • Loading branch information
CarterLi committed Apr 17, 2020
1 parent 7744ea9 commit 149108f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/autocomplete/src/autocomplete-suggestions.vue
Expand Up @@ -11,8 +11,7 @@
wrap-class="el-autocomplete-suggestion__wrap"
view-class="el-autocomplete-suggestion__list">
<li v-if="!parent.hideLoading && parent.loading"><i class="el-icon-loading"></i></li>
<slot v-else>
</slot>
<slot v-else></slot>
</el-scrollbar>
</div>
</transition>
Expand Down
4 changes: 2 additions & 2 deletions packages/autocomplete/src/autocomplete.vue
Expand Up @@ -209,8 +209,8 @@
}
this.debouncedGetData(value);
},
handleChange(event) {
this.$emit('change', event.target.value);
handleChange(value) {
this.$emit('change', value);
},
handleFocus(event) {
this.activated = true;
Expand Down

0 comments on commit 149108f

Please sign in to comment.