简体   繁体   English

按下Bootstrap的下拉菜单后不到一秒钟即可关闭(Android 4.2.1,常规浏览器)

[英]Bootstrap's dropdowns close in less than a sec after pressing them (Android 4.2.1, stock browser)

There's a problem with Twitter Bootstrap's dropdown menus on mobile. 移动设备上Twitter Bootstrap的下拉菜单存在问题。 If I use Android's stock browser and click on a menu, it will open and close in less than a sec without me doing anything else. 如果我使用Android的常规浏览器并单击菜单,则它会在不到一秒钟的时间内打开和关闭,而无需执行其他任何操作。 The same thing happens if I press the dropdowns on the official Bootstrap site, so this has nothing to do with my code. 如果我按官方Bootstrap站点上的下拉菜单,也会发生同样的事情,因此这与我的代码无关。

If you want to keep the dropdowns open and fix this, you have to tap them for a little bit longer, smth like 1 second. 如果您想保持下拉菜单的打开状态并解决此问题,则必须点按它们较长时间,例如1秒钟。 But obviously I'd like a simple tap to be enough. 但是显然我希望简单的点击就足够了。

Is this normal for Android's stock browser? 这对于Android的常规浏览器来说正常吗? In Firefox and Opera Mini dropdowns work just fine. 在Firefox和Opera Mini中,下拉菜单可以正常工作。

Thanks! 谢谢!

PS: no, I don't have any form inside dropdowns. PS:不,我在下拉菜单中没有任何形式。 Only links that work fine in other browsers. 仅在其他浏览器中正常工作的链接。

This is an android browser thing. 这是一个Android浏览器。 They handle links with dropdowns as both a hover and click. 它们将鼠标悬停并单击时处理带有下拉菜单的链接。 Other browser such as iOS handles menus with dropdowns as just the hover then another click to initiate the link. 其他浏览器(例如iOS)会处理带有下拉菜单的菜单,就像将鼠标悬停在菜单上一样,然后再次单击以启动链接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM