about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/composer/spoiler
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-02-12 21:16:02 +0100
committerThibaut Girka <thib@sitedethib.com>2019-02-12 21:16:02 +0100
commite230b176fbb8ba9c29e8ed31131bac870b72c3e9 (patch)
tree6619e1825e86d4b89867d90265527e542432d328 /app/javascript/flavours/glitch/features/composer/spoiler
parent0e34e91661d47ffbb08121c74c8a2de5266de0c8 (diff)
[Glitch] Don't focus spoiler input when disabled spoiler
Inspired by 0e513ff862faf7fa9e5b89d2ab7d22fd0ab540ff
Diffstat (limited to 'app/javascript/flavours/glitch/features/composer/spoiler')
-rw-r--r--app/javascript/flavours/glitch/features/composer/spoiler/index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/features/composer/spoiler/index.js b/app/javascript/flavours/glitch/features/composer/spoiler/index.js
index 1c3c962f0..e2f9c7021 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}
           />
         </label>
       </div>