- 当前 Bug 的表现(可附上截图)
- 预期表现
点击input框聚焦时会闪动,导致失焦,影响键盘的拉起,体验不好
- 复现路径
再登录页面
- 提供一个最简复现 Demo
< view class = 'userinfo' > < form bindsubmit = "formSubmit" report-submit = 'true' > < view class = 'userinfo1' > < image bindtap = "bindViewTap" class = "userinfo-avatar" src = '/images/login/logo.svg' ></ image > </ view > < view class = 'margintop60' > < input class = 'borderstyle' focus = 'true' value = '{{inputName}}' placeholder-class = "plastyle" type = 'text' bindinput = "nameFun" placeholder = '请输入企业账号' ></ input > < input class = 'borderstyle margintop20' value = '{{inputUsername}}' placeholder-class = "plastyle" bindinput = 'usernameFun' type = 'text' placeholder = '请输入用户账号' ></ input > < input class = 'borderstyle margintop20' value = '{{inputPassword}}' placeholder-class = "plastyle" bindinput = 'passwordFun' type = 'text' password placeholder = '请输入密码' ></ input > <!-- <button class='margintop20' type='primary' bindtap='submit'>登录</button> --> < checkbox-group class = "margintop20 checkboxtext" bindchange = "checkboxChange" > < label class = "checkbox" wx:for = "{{items}}" > < checkbox class = 'wh' value = "{{item.name}}" checked = "{{item.checked}}" /> {{item.value}} </ label > </ checkbox-group > < button class = 'margintop20' disabled = "{{disabled}}" formType = 'submit' type = "primary" >登录</ button > </ view > </ form > </ view > |
这个问题只会出现在二级页面,如果放到首页就没事,请官方赶快给出解决方案
确实是这样,我的登录页面是在第一个授权页面中跳转过来的!
闪动的问题是已知问题,后续会修复。
导致键盘拉起后又隐藏——这个是指在ios下切换input的时候出现的问题?
就在andiord机上
具体描述下流程还有提供下代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
当进入这个登录页面时,触摸屏幕让光标聚焦输入框输入内容的时候,输入框有时会出现闪动,同时键盘被拉起后又隐藏了,好像是在触摸屏幕让光标聚焦输入框时,输入框刷新了!(https://developers.weixin.qq.com/s/KwPymDmo7i6Q)
你的意思是指从输入账号切换到输入密码的时候,键盘隐藏又拉起?
是的