[英]Typeahead blur event not fired on iPhone
I have a simple bootstrap typeahed directives which works fine. 我有一个简单的bootstrap typeahed指令,可以正常工作。 But on an iPhone the drop down menu doesn't closed on blur (when I touch else where on my page).
但是在iPhone上,下拉菜单不会在模糊时关闭(当我触摸页面上的其他位置时)。
It does works when I try on the typeahaed demo page on an iPhone. 当我在iPhone上的typeahaed演示页面上尝试时,它确实起作用。
Do I need to do anything special for the blur events to get fired when clicking on my body? 我需要做一些特殊的事情来使模糊事件在单击我的身体时被触发吗?
I found a fix for my problem which solve the closing of the dropdown on iPhone and iPad. 我找到了解决我的问题的解决方案,解决了iPhone和iPad上的下拉菜单关闭问题。
I've just added on mobile devices the css rule: 我刚刚在移动设备上添加了CSS规则:
body { cursor: pointer; }
That's it! 而已!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.