uni-ui icon indicating copy to clipboard operation
uni-ui copied to clipboard

uniSearchBar组件在微信小程序中报错 "hideKeyboard:fail:input not exists"

Open getr00t opened this issue 8 months ago • 5 comments

在微信小程序编辑器里面是看不到报错的,但是在真机上就会出现这个错误提示,这个bug,不知道是哪里的问题,搜索网上都说使用这个api“,uni.hideKeyboard()”就行,但是我试了下不行的,还是一样报错的,我是使用uniSearchBar组件来做了个输入框input,默认我开启了聚焦,加了属性‘focus’,失去焦点后触发‘blur’事件,但是在真机的微信小程序中是可以看到报错提示,input只要失去焦点就报错如下, (in promise) MiniProgramError {"errMsg":"hideKeyboard:fail:input not exists"} 我翻看issues之前有人提到过此bug,已经关闭说修复了是微信的bug?为什么我这里没看到修复,还是一样的复现的此问题,所以这究竟是哪一方的bug?

getr00t avatar May 26 '24 09:05 getr00t