diff options
author | Thibaut Girka <thib@sitedethib.com> | 2019-04-21 22:59:58 +0200 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2019-04-22 20:15:47 +0200 |
commit | d779ec1f0e68ffdfa3ada2992bb2b1ef066655ef (patch) | |
tree | 4eb2acdea4e55c7d8e19283fde94066f833a5b09 /app/javascript/flavours | |
parent | e949861176b633f0a9cdf827c9727f027e7ef037 (diff) |
Fix broken reference to handleSubmit
Diffstat (limited to 'app/javascript/flavours')
-rw-r--r-- | app/javascript/flavours/glitch/features/compose/components/compose_form.js | 7 |
1 files changed, 3 insertions, 4 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 88dce5098..1433ed8c7 100644 --- a/app/javascript/flavours/glitch/features/compose/components/compose_form.js +++ b/app/javascript/flavours/glitch/features/compose/components/compose_form.js @@ -82,12 +82,12 @@ class ComposeForm extends ImmutablePureComponent { handleKeyDown = ({ ctrlKey, keyCode, metaKey, altKey }) => { // We submit the status on control/meta + enter. if (keyCode === 13 && (ctrlKey || metaKey)) { - handleSubmit(); + this.handleSubmit(); } // Submit the status with secondary visibility on alt + enter. if (keyCode === 13 && altKey) { - handleSecondarySubmit(); + this.handleSecondarySubmit(); } } @@ -151,7 +151,6 @@ class ComposeForm extends ImmutablePureComponent { // Handles the secondary submit button. handleSecondarySubmit = () => { - const { handleSubmit } = this.handlers; const { onChangeVisibility, sideArm, @@ -159,7 +158,7 @@ class ComposeForm extends ImmutablePureComponent { if (sideArm !== 'none' && onChangeVisibility) { onChangeVisibility(sideArm); } - handleSubmit(); + this.handleSubmit(); } // Selects a suggestion from the autofill. |