Listview Filter with autodividers jQM1.4.2 vs 1.4.3

Listview Filter with autodividers jQM1.4.2 vs 1.4.3

So I had a try at updating from 1.4.2  to 1.4.3, and was testing a listview with autodividers set to true and noticed that when using 1.4.3 the elements with data-role="list-divider" are not filtered.


This was not the case with 1.4.2.

Easily replicated by trying 1.4.2 and 1.4.3 in the following code.


  1. <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.css" />
    <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
    <script src="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.js"></script>
    </head>
    <body>
    <div data-role="page">
     <div data-role="header" data-position="fixed">
      <h1>Filter Test</h1>
     </div><!-- /header -->
        <div data-role="content">
      <ul data-role="listview" data-autodividers="true" data-filter="true" data-theme="a" data-divider-theme="b">
       <li><a href="index.html">Adam Kinkaid</a></li>
       <li><a href="index.html">Alex Wickerham</a></li>
       <li><a href="index.html">Avery Johnson</a></li>
       <li><a href="index.html">Bob Cabot</a></li>
       <li><a href="index.html">Caleb Booth</a></li>
       <li><a href="index.html">Christopher Adams</a></li>
       <li><a href="index.html">Culver James</a></li> 
      </ul>
     </div>
    </div>
    </body>
    </html>



























Any ideas? Is this a regression or is there some other option to use?


Edit: So the answer is to add the data-hide-dividers="true" option.

http://api.jquerymobile.com/listview/#option-hideDividers

This seems to be a change to default behaviour from the earlier release.