Skip to content
Snippets Groups Projects
Commit b3668a79 authored by ThibG's avatar ThibG Committed by Eugen Rochko
Browse files

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

Fixes #10191
parent cb217444
No related branches found
No related tags found
No related merge requests found
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment