Disable the underlying button element when an ItemButton is disabled (#10194)

Fixes #10191
master
ThibG 6 years ago committed by Eugen Rochko
parent cb217444b8
commit b3668a79ec
  1. 2
      app/javascript/mastodon/components/icon_button.js

@ -86,6 +86,7 @@ export default class IconButton extends React.PureComponent {
onClick={this.handleClick}
style={style}
tabIndex={tabIndex}
disabled={disabled}
>
<Icon id={icon} fixedWidth aria-hidden='true' />
</button>
@ -104,6 +105,7 @@ export default class IconButton extends React.PureComponent {
onClick={this.handleClick}
style={style}
tabIndex={tabIndex}
disabled={disabled}
>
<Icon id={icon} style={{ transform: `rotate(${rotate}deg)` }} fixedWidth aria-hidden='true' />
</button>

Loading…
Cancel
Save