File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -191,15 +191,14 @@ $.widget( "ui.menubar", {
191191 this . __applyKeyboardBehaviorForSubmenuHavingMenuItem ( $anItem , menubar ) ;
192192
193193 $anItem . attr ( "aria-haspopup" , "true" ) ;
194+ if ( menubar . options . menuIcon ) {
195+ $anItem . addClass ( "ui-state-default" ) . append ( "<span class='ui-button-icon-secondary ui-icon ui-icon-triangle-1-s'></span>" ) ;
196+ $anItem . removeClass ( "ui-button-text-only" ) . addClass ( "ui-button-text-icon-secondary" ) ;
197+ }
194198 } else {
195199 this . __applyMouseBehaviorForSubmenulessMenuItem ( $anItem , menubar ) ;
196200 this . __applyKeyboardBehaviorForSubmenulessMenuItem ( $anItem , menubar ) ;
197201 }
198-
199- if ( menubar . options . menuIcon ) {
200- $anItem . addClass ( "ui-state-default" ) . append ( "<span class='ui-button-icon-secondary ui-icon ui-icon-triangle-1-s'></span>" ) ;
201- $anItem . removeClass ( "ui-button-text-only" ) . addClass ( "ui-button-text-icon-secondary" ) ;
202- }
203202 } ,
204203
205204 __applyMouseAndKeyboardBehaviorForMenuItem : function ( $anItem , menubar ) {
You can’t perform that action at this time.
0 commit comments