File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -171,12 +171,9 @@ $.widget( "ui.selectmenu", {
171
171
// adjust ARIA
172
172
this . menu . find ( "li" ) . not ( '.ui-selectmenu-optgroup' ) . find ( 'a' ) . attr ( 'role' , 'option' ) ;
173
173
this . menu . attr ( "aria-activedescendant" , this . menu . find ( "li.ui-menu-item a" ) . eq ( this . element [ 0 ] . selectedIndex ) . attr ( "id" ) ) ;
174
-
175
- if ( this . options . dropdown ) {
176
- this . menu
177
- . addClass ( 'ui-corner-bottom' )
178
- . removeClass ( 'ui-corner-all' ) ;
179
- }
174
+
175
+ // change styles?
176
+ this . _setOption ( "dropdown" , this . options . dropdown ) ;
180
177
181
178
// transfer disabled state
182
179
if ( this . element . attr ( 'disabled' ) ) {
@@ -392,6 +389,9 @@ $.widget( "ui.selectmenu", {
392
389
if ( key === "appendTo" ) {
393
390
this . menuWrap . appendTo ( $ ( value || "body" , this . element [ 0 ] . ownerDocument ) [ 0 ] ) ;
394
391
}
392
+ if ( key === "dropdown" ) {
393
+ this . menu . toggleClass ( 'ui-corner-bottom' , value ) . toggleClass ( 'ui-corner-all' , ! value ) ;
394
+ }
395
395
if ( key === "disabled" ) {
396
396
this . button . button ( "option" , "disabled" , value ) ;
397
397
this . menu . menu ( "option" , "disabled" , value ) ;
You can’t perform that action at this time.
0 commit comments