Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

radio 组件内 input的 focus 影响键盘 #3787

Open
lyf521 opened this issue Jul 29, 2021 · 1 comment
Open

radio 组件内 input的 focus 影响键盘 #3787

lyf521 opened this issue Jul 29, 2021 · 1 comment

Comments

@lyf521
Copy link

lyf521 commented Jul 29, 2021

##raido组件内的input, 会影响 IOS应用内 键盘的调用(键盘弹起时,又自动触发隐藏)。

如果H5引入的有FastClick, 则在点击事件触发键盘没有影响, 因为FastClick内部有
if (document.activeElement && document.activeElement !== targetElement) {
  		document.activeElement.blur();
  	}
  	
  	如果通过原生方法触发键盘, 会有问题。 所以在 radi0隐藏时,  调用document.activeElement.blur();  
@caozhong1996
Copy link
Collaborator

所以你是提出了bug,但是也提出了解决办法吗👍,我觉得是时候把 fastclick 这个插件去除掉了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants