mirror of
https://github.com/flarum/framework.git
synced 2024-11-26 02:10:09 +08:00
fix: don't submit form when search clear button clicked (#3260)
This commit is contained in:
parent
2a04f7e886
commit
567c0a0d7a
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user