Skip to content
Browse files

Selectmenu: Do not remove ui-state-focus class on first button focus …

…(follow-up)
  • Loading branch information...
1 parent b6e1c86 commit 684b55bcbca3721245ab66193fb6728b765632ee @fnagel fnagel committed Oct 27, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 ui/jquery.ui.selectmenu.js
View
3 ui/jquery.ui.selectmenu.js
@@ -303,8 +303,9 @@ $.widget( "ui.selectmenu", {
focus: function( event ) {
// init Menu on first focus
this.refresh();
+ // reset focus class as its removed by ui.widget._setOption
+ this.button.addClass( "ui-state-focus" );
this._off( this.button, "focus" );
- event.preventDefault();
},
click: function( event ) {
this._toggle( event );

0 comments on commit 684b55b

Please sign in to comment.
Something went wrong with that request. Please try again.