Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixes #4252 - Prevent adding ui-btn-icon-right class when there is no…

… icon.
  • Loading branch information...
commit 03f9c6cf6e5d02816cff5f31892671deb943b4da 1 parent e583d00
@jaspermdegroot jaspermdegroot authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 js/jquery.mobile.forms.select.js
View
4 js/jquery.mobile.forms.select.js
@@ -88,6 +88,8 @@ $.widget( "mobile.selectmenu", $.mobile.widget, {
var self = this,
options = this.options,
+
+ iconpos = options.icon ? ( options.iconpos || this.select.jqmData( "iconpos" ) ) : false,
// IE throws an exception at options.item() function when
// there is no selected item
@@ -100,7 +102,7 @@ $.widget( "mobile.selectmenu", $.mobile.widget, {
.buttonMarkup( {
theme: options.theme,
icon: options.icon,
- iconpos: options.iconpos,
+ iconpos: iconpos,
inline: options.inline,
corners: options.corners,
shadow: options.shadow,
Please sign in to comment.
Something went wrong with that request. Please try again.