Skip to content

Commit 684b55b

Browse files
committed
Selectmenu: Do not remove ui-state-focus class on first button focus (follow-up)
1 parent b6e1c86 commit 684b55b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/jquery.ui.selectmenu.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,9 @@ $.widget( "ui.selectmenu", {
303303
focus: function( event ) {
304304
// init Menu on first focus
305305
this.refresh();
306+
// reset focus class as its removed by ui.widget._setOption
307+
this.button.addClass( "ui-state-focus" );
306308
this._off( this.button, "focus" );
307-
event.preventDefault();
308309
},
309310
click: function( event ) {
310311
this._toggle( event );

0 commit comments

Comments
 (0)