From 6e295beab26089595b0ca067beb8a47cb11f8e3e Mon Sep 17 00:00:00 2001 From: ThibG Date: Wed, 6 Mar 2019 15:10:32 +0100 Subject: [PATCH] [Glitch] Disable the underlying button element when an ItemButton is disabled Port b3668a79eca2d185ea57a9ffc2fa012db52e49f0 to glitch-soc --- app/javascript/flavours/glitch/components/icon_button.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/javascript/flavours/glitch/components/icon_button.js b/app/javascript/flavours/glitch/components/icon_button.js index dfbe751101..6a25794d37 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} >