fix: don't submit form when search clear button clicked (#3260)

This commit is contained in:
David Wheatley 2022-02-21 19:31:03 +01:00 committed by GitHub
parent 2a04f7e886
commit 567c0a0d7a

View File

@ -161,6 +161,7 @@ export default class Search<T extends SearchAttrs = SearchAttrs> extends Compone
className="Search-clear Button Button--icon Button--link" className="Search-clear Button Button--icon Button--link"
onclick={this.clear.bind(this)} onclick={this.clear.bind(this)}
aria-label={app.translator.trans('core.forum.header.search_clear_button_accessible_label')} aria-label={app.translator.trans('core.forum.header.search_clear_button_accessible_label')}
type="button"
> >
{icon('fas fa-times-circle')} {icon('fas fa-times-circle')}
</button> </button>