mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
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:
parent
ac732be591
commit
26173486d3
@ -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();"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user