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

@ -13,6 +13,7 @@
autocomplete="off" /> autocomplete="off" />
<button <button
class="clear-input-text" class="clear-input-text"
type="button"
value="" value=""
style="<?= empty($value) ? 'display: none;' : ''; ?>" style="<?= empty($value) ? 'display: none;' : ''; ?>"
onclick="$(this).prev().val('');$(this).prev().request();" onclick="$(this).prev().val('');$(this).prev().request();"