From: ThibG Date: Wed, 6 Mar 2019 14:10:32 +0000 (+0100) Subject: [Glitch] Disable the underlying button element when an ItemButton is disabled X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=6e295beab26089595b0ca067beb8a47cb11f8e3e;p=mastodon.git [Glitch] Disable the underlying button element when an ItemButton is disabled Port b3668a79eca2d185ea57a9ffc2fa012db52e49f0 to glitch-soc --- diff --git a/app/javascript/flavours/glitch/components/icon_button.js b/app/javascript/flavours/glitch/components/icon_button.js index dfbe75110..6a25794d3 100644 --- a/app/javascript/flavours/glitch/components/icon_button.js +++ b/app/javascript/flavours/glitch/components/icon_button.js @@ -107,6 +107,7 @@ export default class IconButton extends React.PureComponent { onClick={this.handleClick} style={style} tabIndex={tabIndex} + disabled={disabled} >