diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2017-05-26 21:10:37 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-26 14:10:37 +0200 |
commit | 4b11675bdc0e99e3e03fde056a1e50e847cec81b (patch) | |
tree | 4d84da1b33fe2fdbdfa21a3ba05eba26fc856bbd /app/javascript/mastodon/components/button.js | |
parent | 2531c5953ba4048b04b3c47de345eeac25c05a5f (diff) |
Change anchor to button element (#3321)
Fix warning for ESLint (jsx-a11y/href-no-hash).
Diffstat (limited to 'app/javascript/mastodon/components/button.js')
-rw-r--r-- | app/javascript/mastodon/components/button.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/components/button.js b/app/javascript/mastodon/components/button.js index aeb6b7c03..52af193e7 100644 --- a/app/javascript/mastodon/components/button.js +++ b/app/javascript/mastodon/components/button.js @@ -22,7 +22,7 @@ class Button extends React.PureComponent { handleClick = (e) => { if (!this.props.disabled) { - this.props.onClick(); + this.props.onClick(e); } } |