Commit 03610267 authored by Harlan's avatar Harlan Committed by hetech

AutoComplete: add clear event (#13326)

* AutoComplete: add clear event(#13317)

* remove arg in `handleClear` in AutoComplete
parent 1f592944
......@@ -13,6 +13,7 @@
@input="handleChange"
@focus="handleFocus"
@blur="handleBlur"
@clear="handleClear"
@keydown.up.native.prevent="highlight(highlightedIndex - 1)"
@keydown.down.native.prevent="highlight(highlightedIndex + 1)"
@keydown.enter.native="handleKeyEnter"
......@@ -193,6 +194,9 @@
handleBlur(event) {
this.$emit('blur', event);
},
handleClear() {
this.$emit('clear');
},
close(e) {
this.activated = false;
},
......
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