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", {
7171 //click toggle for menu visibility
7272 this . newelement
7373 . bind ( 'mousedown' , function ( event ) {
74- self . _toggle ( event ) ;
74+ self . _toggle ( event , true ) ;
7575 //make sure a click won't open/close instantly
7676 if ( o . style == "popup" ) {
7777 self . _safemouseup = false ;
@@ -416,7 +416,9 @@ $.widget("ui.selectmenu", {
416416 . attr ( 'aria-hidden' , true )
417417 . removeClass ( this . widgetBaseClass + '-open' ) ;
418418 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 ( ) ; }
420422 this . _trigger ( "close" , event , this . _uiHash ( ) ) ;
421423 }
422424 } ,
You can’t perform that action at this time.
0 commit comments