[bugfix] AddressEdit: select search not work in vue 2.6+ (#2689)

This commit is contained in:
neverland 2019-02-05 22:35:05 +08:00 committed by GitHub
parent f768e75bfe
commit 832b5f6d09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -211,6 +211,13 @@ export default sfc({
setAddressDetail(value) {
this.data.addressDetail = value;
},
onDetailBlur() {
// await for click search event
setTimeout(() => {
this.detailFocused = false;
});
}
},
@ -259,9 +266,7 @@ export default sfc({
searchResult={this.searchResult}
showSearchResult={this.showSearchResult}
onFocus={onFocus('addressDetail')}
onBlur={() => {
this.detailFocused = false;
}}
onBlur={this.onDetailBlur}
onInput={this.onChangeDetail}
onSelect-search={event => {
this.$emit('select-search', event);