From 53cc85871dc6073cee4831a533165972ca652726 Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Tue, 12 Feb 2019 21:16:02 +0100 Subject: [PATCH] [Glitch] Don't focus spoiler input when disabled spoiler Inspired by 6866739387f6c8f1b41c4b6886868a24c4cceeb2 --- .../flavours/glitch/features/composer/spoiler/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/flavours/glitch/features/composer/spoiler/index.js b/app/javascript/flavours/glitch/features/composer/spoiler/index.js index 1c3c962f09..e2f9c70216 100644 --- a/app/javascript/flavours/glitch/features/composer/spoiler/index.js +++ b/app/javascript/flavours/glitch/features/composer/spoiler/index.js @@ -87,6 +87,7 @@ export default class ComposerSpoiler extends React.PureComponent { type='text' value={text} ref={handleRefSpoilerText} + disabled={hidden} />