about summary refs log tree commit diff
path: root/app/javascript/mastodon/components/button.js
diff options
context:
space:
mode:
authorSunny Ripert <sunny@sunfox.org>2022-11-04 17:08:08 +0100
committerGitHub <noreply@github.com>2022-11-04 17:08:08 +0100
commit0165449e3a062238511489a8b23f3facd98258b6 (patch)
tree38d59d9a9b5ffcfc8b0e753f76cd57e6033ba4e7 /app/javascript/mastodon/components/button.js
parentc2170991c7889b8f6c6434f416cb0a8450db25a1 (diff)
A11y: Explicit <form> element around compose area (#19742)
Diffstat (limited to 'app/javascript/mastodon/components/button.js')
-rw-r--r--app/javascript/mastodon/components/button.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/javascript/mastodon/components/button.js b/app/javascript/mastodon/components/button.js
index 85b2d78ca..bcb855c7c 100644
--- a/app/javascript/mastodon/components/button.js
+++ b/app/javascript/mastodon/components/button.js
@@ -6,6 +6,7 @@ export default class Button extends React.PureComponent {
 
   static propTypes = {
     text: PropTypes.node,
+    type: PropTypes.string,
     onClick: PropTypes.func,
     disabled: PropTypes.bool,
     block: PropTypes.bool,
@@ -42,6 +43,7 @@ export default class Button extends React.PureComponent {
         onClick={this.handleClick}
         ref={this.setRef}
         title={this.props.title}
+        type={this.props.type}
       >
         {this.props.text || this.props.children}
       </button>