This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
Prevent enter from doing a form submit on the filterable search #7240
Closed
Description
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:
<form class="ui-filterable">
<input type="text" autocomplete="off" placeholder="Search for..." data-type="search" id="filterable-input" />
</form>
<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.