about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/compose
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-08-20 10:55:03 +0200
committerThibaut Girka <thib@sitedethib.com>2019-08-20 10:55:03 +0200
commitdff4ccd7e993f8b7b640a89881f50af290f25e26 (patch)
tree7d01d90d11ef7557dca71e2ae5ca5926bb5430d0 /app/javascript/flavours/glitch/features/compose
parentdf150da4355bb224913f6de2940c9135714fb53f (diff)
Remove code for giving focus to first media without description
Since the textarea is in a modal, now…
Diffstat (limited to 'app/javascript/flavours/glitch/features/compose')
-rw-r--r--app/javascript/flavours/glitch/features/compose/components/compose_form.js7
1 files changed, 0 insertions, 7 deletions
diff --git a/app/javascript/flavours/glitch/features/compose/components/compose_form.js b/app/javascript/flavours/glitch/features/compose/components/compose_form.js
index 37108b0da..2c946f4c7 100644
--- a/app/javascript/flavours/glitch/features/compose/components/compose_form.js
+++ b/app/javascript/flavours/glitch/features/compose/components/compose_form.js
@@ -121,13 +121,6 @@ class ComposeForm extends ImmutablePureComponent {
 
     // Submit unless there are media with missing descriptions
     if (mediaDescriptionConfirmation && onMediaDescriptionConfirm && media && media.some(item => !item.get('description'))) {
-      const firstWithoutDescription = media.findIndex(item => !item.get('description'));
-      if (uploadForm) {
-        const inputs = uploadForm.querySelectorAll('.composer--upload_form--item input');
-        if (inputs.length == media.size && firstWithoutDescription !== -1) {
-          inputs[firstWithoutDescription].focus();
-        }
-      }
       onMediaDescriptionConfirm(this.context.router ? this.context.router.history : null);
     } else if (onSubmit) {
       onSubmit(this.context.router ? this.context.router.history : null);