Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit fcbf106

Browse files
author
sgrebnov
committed
modified 'if' statement in custom selectmenu markup creation loop
1 parent 9afaf8b commit fcbf106

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

js/jquery.mobile.forms.select.custom.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -448,13 +448,11 @@
448448
}
449449
}
450450

451-
if (!placeholder){
452-
if ( !option.getAttribute( "value" ) || text.length == 0 || $option.jqmData( "placeholder" ) ) {
453-
if ( o.hidePlaceholderMenuItems ) {
454-
classes.push( "ui-selectmenu-placeholder" );
455-
}
456-
placeholder = self.placeholder = text;
457-
}
451+
if (!placeholder && (!option.getAttribute( "value" ) || text.length == 0 || $option.jqmData( "placeholder" )) ) {
452+
if ( o.hidePlaceholderMenuItems ) {
453+
classes.push( "ui-selectmenu-placeholder" );
454+
}
455+
placeholder = self.placeholder = text;
458456
}
459457

460458
var item = document.createElement('li');

0 commit comments

Comments
 (0)