mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-22 06:31:45 +08:00
[bugfix] AddressEdit: select search not work in vue 2.6+ (#2689)
This commit is contained in:
parent
f768e75bfe
commit
832b5f6d09
@ -211,6 +211,13 @@ export default sfc({
|
|||||||
|
|
||||||
setAddressDetail(value) {
|
setAddressDetail(value) {
|
||||||
this.data.addressDetail = 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}
|
searchResult={this.searchResult}
|
||||||
showSearchResult={this.showSearchResult}
|
showSearchResult={this.showSearchResult}
|
||||||
onFocus={onFocus('addressDetail')}
|
onFocus={onFocus('addressDetail')}
|
||||||
onBlur={() => {
|
onBlur={this.onDetailBlur}
|
||||||
this.detailFocused = false;
|
|
||||||
}}
|
|
||||||
onInput={this.onChangeDetail}
|
onInput={this.onChangeDetail}
|
||||||
onSelect-search={event => {
|
onSelect-search={event => {
|
||||||
this.$emit('select-search', event);
|
this.$emit('select-search', event);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user