File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ $.widget("ui.selectmenu", {
29
29
icons : null ,
30
30
format : null ,
31
31
escapeHtml : false ,
32
+ transferClasses : true ,
32
33
bgImage : function ( ) { }
33
34
} ,
34
35
@@ -405,6 +406,12 @@ $.widget("ui.selectmenu", {
405
406
. toggleClass ( 'ui-icon-triangle-1-s' , isDropDown )
406
407
. toggleClass ( 'ui-icon-triangle-2-n-s' , ! isDropDown ) ;
407
408
409
+ // transfer classes to selectmenu and list
410
+ if ( o . transferClasses ) {
411
+ var transferClasses = this . element . attr ( 'class' ) || '' ;
412
+ this . newelement . add ( this . list ) . addClass ( transferClasses ) ;
413
+ }
414
+
408
415
// set menu width to either menuWidth option value, width option value, or select width
409
416
if ( o . style == 'dropdown' ) {
410
417
this . list . width ( o . menuWidth ? o . menuWidth : o . width ) ;
You can’t perform that action at this time.
0 commit comments