为什么选择下拉菜单允许我单击一个项目IE,但在Firefox,Chrome等工作正常? [英] Why doesn't a select dropdown allow me to click an item IE but works fine in Firefox, Chrome, etc?
问题描述
我正在使用
有关如何获取jquery mega菜单上显示的选择下拉菜单的任何建议
您的问题的原因是插件的代码本身。问题:IE不会将其选择元素视为实际选择选项的一部分。
添加这对你的jquery代码应该解决问题:
$(。mega-hover select)。mouseleave(function(event){
event.stopPropagation();
});
请保持发布。
I am using the jquery mega dropdown menu plugin. In one of the menus, I wanted to add a dropdown box. It works fine in Firefox, Chrome (as seen in screenshot below)
but in IE, when i click on the select dropdown and hover over one of the item in the select for more than a second, the whole menu disappears (as if it thinks that i am no longer hovering over the menu.
I am able to reproduce the issue on this example (click on "Sales")
Any suggestions on how to get a select dropdown showing up on jquery mega menu
The cause of your issue is the plugin's code itself. The probelm: IE does not consider its "select elements" as part of the actual select option.
Adding this to your jquery code should solve the problem:
$(".mega-hover select").mouseleave(function(event){
event.stopPropagation();
});
Please keep me posted.
这篇关于为什么选择下拉菜单允许我单击一个项目IE,但在Firefox,Chrome等工作正常?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!