小程序的input和textarea在弹窗中是不是都有bug?

小程序 文章 2020-09-08 10:41 0 9 全屏看文

小程序的input和textarea在弹窗中是不是都有bug?Do the input and textarea of ​​the applet have bugs in the pop-up window?

小程序的input和textarea在弹窗中是不是都有bug?

页面弹出一个窗口让用户输入信息,就这么简单的交互,之前用textarea会出现用户在弹窗中输入的内容程序获取不到,关闭弹窗后输入的文字依然残留在页面的问题,后来说小程序尽量不用textarea多行文本框,于是乎我换成了input,结果input在部分iphone机型上依然存在和textarea相同的bug,目前测试iphone7会有这个bug。

小程序不允许用弹窗表单的方式还怎么滴?

A window will pop up on the page for users to input information. This is such a simple interaction. Before using textarea, the content entered by users in the pop-up window could not be obtained by the program. After closing the pop-up window, the text still remained on the page. Later, it was said that the small program should try not to use the textarea multi line text box, so I changed to input. As a result, the input still exists on some iPhone models In the same bug as textarea, currently testing iPhone 7 will have this bug. Small program does not allow to use pop-up window form, how to drop?

回答:

?:

textarea的层级是最高的,你弹窗显示的时候将弹窗下面的textarea隐藏。

微喵网络:

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

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

-EOF-