Fix:3284 【商城小程序】搜索页面—编辑搜索框内容时,浮动词条没有隐藏

This commit is contained in:
modendeveloper
2025-03-01 16:29:11 +08:00
parent e71826919c
commit e5e63f3e2f
+7 -4
View File
@@ -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) {