Superfish plugin: Item with no children list doesn't hide sibling lists
Hi there,
I've been walking with the
Superfish plugin and taking the following list as example:
- <ul>
<li>Item 1
<ul>
<li>Item 1.1</li>
<li>Item 1.2</li>
</ul>
</li>
<li>Item 2</li>
<li>Item 3
<ul>
<li>Item 3.1</li>
<li>Item 3.2</li>
</ul>
</li>
</ul>
I have noticed that when you hover Item 2, which doesn't have children, the fired event doesn't hide any of the other children list. I've dig a little bit in the code and I found the following lines in superfish.js:
- $('li:has(ul)',this)[($.fn.hoverIntent && ! o.disableHI) ? 'hoverIntent' : 'hover'](over,out).each(function() {
if (o.autoArrows) addArrow( $('>a:first-child',this) );
})
.not('.'+c.bcClass)
.hideSuperfishUl();
Removing the 'has(ul)' from the selector makes the trick but I'm wondering if this is the right way to solve this problem or if this is not even a bug.
Can you please check this behaviour?
Just in case this is relevant the style that I'm using is 'default' and the menu type is 'NavBar'.
Thank you very much, and nice work.