aboutsummaryrefslogtreecommitdiffstats
path: root/ui/widgets/selectmenu.js
diff options
context:
space:
mode:
authorAlexander Schmitz <arschmitz@gmail.com>2016-03-30 11:38:34 -0400
committerScott González <scott.gonzalez@gmail.com>2016-03-30 11:53:28 -0400
commitbff8277fbc885bf2dc0461ac706d2f2bb7035ad6 (patch)
treec037803096190ced1cd806a15580dc2de94847c7 /ui/widgets/selectmenu.js
parentbf5d6f314b3798094efdca4b73e09233f2a69d7d (diff)
downloadjquery-ui-bff8277fbc885bf2dc0461ac706d2f2bb7035ad6.tar.gz
jquery-ui-bff8277fbc885bf2dc0461ac706d2f2bb7035ad6.zip
Selectmenu: Prepend icon and move overflow to text span
Fixes #14938 Closes gh-1685
Diffstat (limited to 'ui/widgets/selectmenu.js')
-rw-r--r--ui/widgets/selectmenu.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/widgets/selectmenu.js b/ui/widgets/selectmenu.js
index fa7f87e94..87f88623f 100644
--- a/ui/widgets/selectmenu.js
+++ b/ui/widgets/selectmenu.js
@@ -119,11 +119,10 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
this._addClass( this.button, "ui-selectmenu-button ui-selectmenu-button-closed",
"ui-button ui-widget" );
- this.buttonItem = this._renderButtonItem( item )
- .appendTo( this.button );
-
icon = $( "<span>" ).appendTo( this.button );
this._addClass( icon, "ui-selectmenu-icon", "ui-icon " + this.options.icons.button );
+ this.buttonItem = this._renderButtonItem( item )
+ .appendTo( this.button );
if ( this.options.width !== false ) {
this._resizeButton();