[Glitch] Disable the underlying button element when an ItemButton is disabled
Port 365f875f57
to glitch-soc
lolsob-rspec
parent
f123b809a7
commit
6b4eb1ac96
|
@ -107,6 +107,7 @@ export default class IconButton extends React.PureComponent {
|
||||||
onClick={this.handleClick}
|
onClick={this.handleClick}
|
||||||
style={style}
|
style={style}
|
||||||
tabIndex={tabIndex}
|
tabIndex={tabIndex}
|
||||||
|
disabled={disabled}
|
||||||
>
|
>
|
||||||
<i className={`fa fa-fw fa-${icon}`} aria-hidden='true' />
|
<i className={`fa fa-fw fa-${icon}`} aria-hidden='true' />
|
||||||
</button>
|
</button>
|
||||||
|
@ -125,6 +126,7 @@ export default class IconButton extends React.PureComponent {
|
||||||
onClick={this.handleClick}
|
onClick={this.handleClick}
|
||||||
style={style}
|
style={style}
|
||||||
tabIndex={tabIndex}
|
tabIndex={tabIndex}
|
||||||
|
disabled={disabled}
|
||||||
>
|
>
|
||||||
<i style={{ transform: `rotate(${rotate}deg)` }} className={`fa fa-fw fa-${icon}`} aria-hidden='true' />
|
<i style={{ transform: `rotate(${rotate}deg)` }} className={`fa fa-fw fa-${icon}`} aria-hidden='true' />
|
||||||
{this.props.label}
|
{this.props.label}
|
||||||
|
|
Loading…
Reference in New Issue