Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
"Filterable inside custom select" widget's placeholder is being taken into a count #7396
I had used the code from here: http://demos.jquerymobile.com/1.4.2/selectmenu-custom-filter/
The main thing here is: > li:not(:jqmData(placeholder='true'))
I propose to use my value of children for "mobile.filterable" widget. (line no.13631 jquery.mobile-1.4.2.js)
See the results: http://jsfiddle.net/WqpnA/
P.S. please make a standard component with this behavior. So developers won't have to write a lot of code from widget "Filterable inside custom select"...
Thanks for reporting the problem you ran into. I suggest we change the demo a little bit so it has a placeholder as well and we show how to set option children when you call the filterable widget.
I am not in favor of integrating the behavior in the widget, because it doesn't fit in our goal to simplify our widgets.