Skip to content

Commit f41d237

Browse files
kborchersjzaefferer
authored andcommitted
Menu: Check if submenu is already open and if so, don't call open again. Fixes Firefox bug where a mouseover of an icon adjusted the position of a submenu by a half pixel
1 parent 2803417 commit f41d237

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ui/jquery.ui.menu.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,10 @@ $.widget( "ui.menu", {
301301

302302
_startOpening: function( submenu ) {
303303
clearTimeout( this.timer );
304+
305+
//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
306+
if ( submenu.attr( "aria-hidden" ) !== "true" ) return;
307+
304308
var self = this;
305309
self.timer = setTimeout( function() {
306310
self._close();

0 commit comments

Comments
 (0)