From e230b176fbb8ba9c29e8ed31131bac870b72c3e9 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 0e513ff862faf7fa9e5b89d2ab7d22fd0ab540ff --- .../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 1c3c962f09c..e2f9c702169 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} />