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

Fixes #10191
lolsob-rspec
ThibG 2019-03-06 15:10:32 +01:00 committed by Eugen Rochko
parent 0b7c53937f
commit 365f875f57
1 changed files with 2 additions and 0 deletions

View File

@ -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>