点击会穿透到picker-view下方的input上?求解决

小程序 文章 2020-08-26 16:21 652 0 全屏看文

AI助手支持GPT4.0

点击会穿透到picker-view下方的input上?求解决Will the click penetrate to the input below the picker-view? Seek solution

点击会穿透到picker-view下方的input上?求解决

如题,官方提供的picker-view组件,存在点击穿透问题。不但能看到picker-view下层的input placeholder,还能点击直接编辑......体验太差了!!!

现在临时解决方案是隐藏picker-view下层的元素解决了,但这只是权宜之计,有没有更好的解决办法?

For example, the picker view component provided by the government has a click through problem. Not only can you see the input holder in the lower layer of picker view, but also click to edit directly... The experience is too bad!!! Now the temporary solution is to hide the underlying elements of picker view, but this is only an expedient measure. Is there a better solution?

回答:

?:

picker显示的时候input为disabled 隐藏的时候 去掉disabled。

hyn:这个确实是权宜之计的升级版
?:没办法....textarea会让你更难受..
仙ღ₅₂₀¹³¹⁴:

因为input是原生组件。

微喵网络:

弄一个 [ 能复现问题的简单的 ] 代码片段

https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

-EOF-

AI助手支持GPT4.0