Fix issue where the clear search button would submit a form if the search widget is within an HTML form

This commit is contained in:
Luke Towers 2018-12-28 11:51:51 -06:00
parent ac732be591
commit 26173486d3

View File

@ -11,12 +11,13 @@
data-load-indicator-opaque
class="form-control <?= $cssClasses ?>"
autocomplete="off" />
<button
class="clear-input-text"
<button
class="clear-input-text"
type="button"
value=""
style="<?= empty($value) ? 'display: none;' : ''; ?>"
onclick="$(this).prev().val('');$(this).prev().request();"
>
<i class="icon-times"></i>
</button>
</button>
</div>