]> source.dussan.org Git - jquery-ui.git/commitdiff
Menu: Check if submenu is already open and if so, don't call open again. Fixes Firefo...
authorkborchers <kris.borchers@gmail.com>
Wed, 13 Jul 2011 23:19:02 +0000 (18:19 -0500)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Thu, 14 Jul 2011 15:08:28 +0000 (11:08 -0400)
ui/jquery.ui.menu.js

index 5f9de6134f4e06c9dd2c01261e06db362725b02e..83ff1b949813dfb31153a7416fe5c48b0b14b050 100644 (file)
@@ -301,6 +301,10 @@ $.widget( "ui.menu", {
 
        _startOpening: function( submenu ) {
                clearTimeout( this.timer );
+               
+               //Don't open if already open fixes a Firefox bug that caused a .5 pixel shift in the submenu position when mousing over the carat icon
+               if ( submenu.attr( "aria-hidden" ) !== "true" ) return;
+               
                var self = this;
                self.timer = setTimeout( function() {
                        self._close();