about summary refs log tree commit diff
path: root/app/javascript/mastodon/features/filters/select_filter.js
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-11-05 13:43:37 +0100
committerGitHub <noreply@github.com>2022-11-05 13:43:37 +0100
commit9616f5bb2248b4bf8f1e51130af1f19a94abf6db (patch)
tree2b6e7150dddf24514f1f8818da0a5ee8f562f54e /app/javascript/mastodon/features/filters/select_filter.js
parent1e7ea50f4ccadee0a25db0d79840497bd0175589 (diff)
Fix compose form submission reloading web interface (#19762)
* Fix compose form submission reloading web interface

Fix regression introduced by #19742

* Fix various compose form buttons being handled like submit buttons

* Fix coding style issue

* Fix missing onClick prop check
Diffstat (limited to 'app/javascript/mastodon/features/filters/select_filter.js')
-rw-r--r--app/javascript/mastodon/features/filters/select_filter.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/features/filters/select_filter.js b/app/javascript/mastodon/features/filters/select_filter.js
index b5b354529..b68a5de6c 100644
--- a/app/javascript/mastodon/features/filters/select_filter.js
+++ b/app/javascript/mastodon/features/filters/select_filter.js
@@ -177,7 +177,7 @@ class SelectFilter extends React.PureComponent {
 
         <div className='emoji-mart-search'>
           <input type='search' value={searchValue} onChange={this.handleSearchChange} onKeyDown={this.handleSearchKeyDown} placeholder={intl.formatMessage(messages.search)} autoFocus />
-          <button className='emoji-mart-search-icon' disabled={!isSearching} aria-label={intl.formatMessage(messages.clear)} onClick={this.handleClear}>{!isSearching ? loupeIcon : deleteIcon}</button>
+          <button type='button' className='emoji-mart-search-icon' disabled={!isSearching} aria-label={intl.formatMessage(messages.clear)} onClick={this.handleClear}>{!isSearching ? loupeIcon : deleteIcon}</button>
         </div>
 
         <div className='language-dropdown__dropdown__results emoji-mart-scroll' role='listbox' ref={this.setListRef}>