From b6e1c86864708b27d7d8b38f6fd713b5391b545a Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Fri, 26 Oct 2012 19:29:30 +0200 Subject: [PATCH] Selectmenu: Do not remove ui-state-focus class on first button focus --- ui/jquery.ui.selectmenu.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index 6b353d8db..3286111fb 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -304,6 +304,7 @@ $.widget( "ui.selectmenu", { // init Menu on first focus this.refresh(); this._off( this.button, "focus" ); + event.preventDefault(); }, click: function( event ) { this._toggle( event );