File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -463,6 +463,33 @@ return $.widget( "ui.selectmenu", {
463
463
this . menu . attr ( "aria-activedescendant" , id ) ;
464
464
} ,
465
465
466
+ _elementsFromClassKey : function ( classKey ) {
467
+ switch ( classKey ) {
468
+ case "ui-selectmenu-button" :
469
+ return this . button ;
470
+ case "ui-selectmenu-button-open" :
471
+ if ( this . isOpen ) {
472
+ return this . button ;
473
+ }
474
+ case "ui-selectmenu-button-closed" :
475
+ if ( ! this . isOpen ) {
476
+ return this . button ;
477
+ }
478
+ case "ui-selectmenu-text" :
479
+ return this . buttonText ;
480
+ case "ui-selectmenu-menu" :
481
+ return this . menu ;
482
+ case "ui-selectmenu-optgroup" :
483
+ return this . menu . find ( classKey ) ;
484
+ case "ui-selectmenu-open" :
485
+ if ( this . isOpen ) {
486
+ return this . menuWrap ;
487
+ }
488
+ default :
489
+ return this . _superApply ( arguments ) ;
490
+ }
491
+ } ,
492
+
466
493
_setOption : function ( key , value ) {
467
494
if ( key === "icons" ) {
468
495
this . button . find ( "span.ui-icon" )
You can’t perform that action at this time.
0 commit comments