Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

The 'text' value of listview's filterCallback function is wrong. #5329

Closed
rahmadid opened this Issue Nov 26, 2012 · 2 comments

Comments

Projects
None yet
3 participants
  1. Issue description.
    On a listview with filter, if the data-filtertext is set to '0' (zero), the value of 'text' parameter of the filterCallback function is wrong.
  2. Test page.
    http://jsbin.com/ukewu3/282 (view the console log).
  3. Steps to reproduce.
    Type any character into the filter box.
  4. Expected outcome.
    The value of 'text' parameter should be '0' (zero).
  5. Actual outcome.
    The value of 'text' parameter is the text of list item.
  6. Platforms/browsers and devices tested.
    Google Chrome 23.0.1271.64 (on Ubuntu linux).
    Opera 12.11 (on Ubuntu linux).
    Not tested on device yet.
  7. jQuery Mobile and jQuery core version used.
    jQuery Mobile latest.
    jQuery 1.8.2
Contributor

jerone commented Nov 26, 2012

Confirmed.

Problem is here: https://github.com/jquery/jquery-mobile/blob/master/js/widgets/listview.filter.js#L85
A check if the attribute exists and a check if the value is not empty should be used.

Owner

arschmitz commented Aug 7, 2013

the listview filter extension no longer exists there is now a filter widget closing this if ther are any issues with new widget please open new issue

@arschmitz arschmitz closed this Aug 7, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment