Fix:3284 【商城小程序】搜索页面—编辑搜索框内容时,浮动词条没有隐藏
This commit is contained in:
@@ -11,6 +11,8 @@
|
|||||||
@blur="showHistory"
|
@blur="showHistory"
|
||||||
@focus="hideHistory"
|
@focus="hideHistory"
|
||||||
@input="hideHistory"
|
@input="hideHistory"
|
||||||
|
@change="hideHistory"
|
||||||
|
@compositionstart="hideHistory"
|
||||||
/>
|
/>
|
||||||
<view class="btn flex-0 flex jc-center ai-center" @click.stop="submit">
|
<view class="btn flex-0 flex jc-center ai-center" @click.stop="submit">
|
||||||
<text class="iconfont icon-sousuo2"></text>
|
<text class="iconfont icon-sousuo2"></text>
|
||||||
@@ -171,10 +173,11 @@ export default {
|
|||||||
this.showkey = true
|
this.showkey = true
|
||||||
},
|
},
|
||||||
hideHistory() {
|
hideHistory() {
|
||||||
if(!this.search) {
|
|
||||||
this.showkey = true
|
// if(!this.search) {
|
||||||
return
|
// this.showkey = true
|
||||||
}
|
// return
|
||||||
|
// }
|
||||||
this.showkey = false
|
this.showkey = false
|
||||||
},
|
},
|
||||||
change(e) {
|
change(e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user