Listview li items must be created with data-filtertext attributes copied from options.
Selectmenu: Filterable demo now filters/refreshes selectmenu widget
@slavap I've updated the demo to take into account the filtertext. The updated demo should appear in the next version of jQuery Mobile.
Note that the updated demo also fixes another issue I accidentally introduced, whereby, once a select menu opens as a dialog, the text input doing the filtering is not returned to the popup afterwards. So, if the menu opens as a dialog even once and later opens as a popup, then the popup will not have the text input, because the text input stays with the dialog.
Thanks! But your fix is not completely proper. When data-filtertext is defined, original content should be ignored, but in your demo both orange and florida are working.
Nono ... "Orange" doesn't work. "Or" works because of FlORida. If you type "Ora", you get no hits.
Sorry, my mistake, thanks again!
what about this?
flori gives me the result orange
flora gives me no result
Orange is just display value, but search value for it is Florida. That's why flori gives you orange, and flora gives you nothing.
(cherry picked from commit 75e1823)