A previous issue: prevent enter from doing a form submit on the list search filter #1068 has returned/resurfaced in 1.4.2 using the filterable widget brings this issue back where a Enter or [DONE] or [SEARCH] button on mobile devices causes the page to submit and reload. If the filterable is being used on a widget it should not submit.
Code used on my page that causes the issue in 1.4.2:
<input type="text" autocomplete="off" placeholder="Search for..." data-type="search" id="filterable-input" />
<ul id="wfList" data-filter="true" data-autodividers="true" data-input="#filterable-input" data-role="listview" data-filter-reveal="true" data-divider-theme="c"></ul>
The listview is built dynamically from AJAX and updated via refresh.
Sample using the above code and showing the error: http://jsfiddle.net/7V5sc/
Filterable: Prevent form submission
Intercept ENTER on keydown and preventDefault()
Filterable: Prevent form submission when user presses ENTER
Intercept ENTER on keydown and keypress, preventing default
hello, unfortunately, there is not enough space on small screens to have both a search input (database query to search outside this page) and a filterable input field.
It could have been cool to have a kind of
I have to comment your change since 1.4.3.