Skip to content

Commit 83e7aeb

Browse files
author
scottjehl
committed
when the select's options don't match the list item options, it should be rebuilt. Fixes jquery-archive#1240
1 parent b56626f commit 83e7aeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/jquery.mobile.forms.select.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ $.widget( "mobile.selectmenu", $.mobile.widget, {
359359
return options.index( this );
360360
}).get();
361361

362-
if( !self.options.nativeMenu && ( forceRebuild || select[0].options.length > self.list.find('li').length )){
362+
if( !self.options.nativeMenu && ( forceRebuild || select[0].options.length != self.list.find('li').length )){
363363
self._buildList();
364364
}
365365

0 commit comments

Comments
 (0)