mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-19 05:41:00 +00:00
when the select's options don't match the list item options, it should be rebuilt. Fixes #1240
This commit is contained in:
parent
b56626fba1
commit
83e7aeb4a5
1 changed files with 1 additions and 1 deletions
|
|
@ -359,7 +359,7 @@ $.widget( "mobile.selectmenu", $.mobile.widget, {
|
|||
return options.index( this );
|
||||
}).get();
|
||||
|
||||
if( !self.options.nativeMenu && ( forceRebuild || select[0].options.length > self.list.find('li').length )){
|
||||
if( !self.options.nativeMenu && ( forceRebuild || select[0].options.length != self.list.find('li').length )){
|
||||
self._buildList();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue