diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-11-05 13:43:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-05 13:43:37 +0100 |
commit | 9616f5bb2248b4bf8f1e51130af1f19a94abf6db (patch) | |
tree | 2b6e7150dddf24514f1f8818da0a5ee8f562f54e /app/javascript/mastodon/features/home_timeline/index.js | |
parent | 1e7ea50f4ccadee0a25db0d79840497bd0175589 (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/home_timeline/index.js')
-rw-r--r-- | app/javascript/mastodon/features/home_timeline/index.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/javascript/mastodon/features/home_timeline/index.js b/app/javascript/mastodon/features/home_timeline/index.js index 838ed7dd8..749a47e76 100644 --- a/app/javascript/mastodon/features/home_timeline/index.js +++ b/app/javascript/mastodon/features/home_timeline/index.js @@ -126,6 +126,7 @@ class HomeTimeline extends React.PureComponent { if (hasAnnouncements) { announcementsButton = ( <button + type='button' className={classNames('column-header__button', { 'active': showAnnouncements })} title={intl.formatMessage(showAnnouncements ? messages.hide_announcements : messages.show_announcements)} aria-label={intl.formatMessage(showAnnouncements ? messages.hide_announcements : messages.show_announcements)} |