File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ $.widget("ui.selectmenu", {
71
71
//click toggle for menu visibility
72
72
this . newelement
73
73
. bind ( 'mousedown' , function ( event ) {
74
- self . _toggle ( event ) ;
74
+ self . _toggle ( event , true ) ;
75
75
//make sure a click won't open/close instantly
76
76
if ( o . style == "popup" ) {
77
77
self . _safemouseup = false ;
@@ -416,7 +416,9 @@ $.widget("ui.selectmenu", {
416
416
. attr ( 'aria-hidden' , true )
417
417
. removeClass ( this . widgetBaseClass + '-open' ) ;
418
418
if ( this . options . style == "dropdown" ) { this . newelement . removeClass ( 'ui-corner-top' ) . addClass ( 'ui-corner-all' ) ; }
419
- if ( retainFocus ) { this . newelement [ 0 ] . focus ( ) ; }
419
+ console . log ( this . newelement ) ;
420
+ console . log ( this . retainFocus ) ;
421
+ if ( retainFocus ) { this . newelement . focus ( ) ; }
420
422
this . _trigger ( "close" , event , this . _uiHash ( ) ) ;
421
423
}
422
424
} ,
You can’t perform that action at this time.
0 commit comments