From 567c0a0d7a35469dc3faf44f1c8a9e130ddc8c6f Mon Sep 17 00:00:00 2001 From: David Wheatley Date: Mon, 21 Feb 2022 19:31:03 +0100 Subject: [PATCH] fix: don't submit form when search clear button clicked (#3260) --- framework/core/js/src/forum/components/Search.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/framework/core/js/src/forum/components/Search.tsx b/framework/core/js/src/forum/components/Search.tsx index 471e39322..8224452ca 100644 --- a/framework/core/js/src/forum/components/Search.tsx +++ b/framework/core/js/src/forum/components/Search.tsx @@ -161,6 +161,7 @@ export default class Search extends Compone className="Search-clear Button Button--icon Button--link" onclick={this.clear.bind(this)} aria-label={app.translator.trans('core.forum.header.search_clear_button_accessible_label')} + type="button" > {icon('fas fa-times-circle')}