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"
@focus="hideHistory"
@input="hideHistory"
@change="hideHistory"
@compositionstart="hideHistory"
/>
<view class="btn flex-0 flex jc-center ai-center" @click.stop="submit">
<text class="iconfont icon-sousuo2"></text>
@@ -171,10 +173,11 @@ export default {
this.showkey = true
},
hideHistory() {
if(!this.search) {
this.showkey = true
return
}
// if(!this.search) {
// this.showkey = true
// return
// }
this.showkey = false
},
change(e) {