mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-26 17:13:42 +01:00
Fix broken reference to handleSubmit
This commit is contained in:
parent
e949861176
commit
d779ec1f0e
1 changed files with 3 additions and 4 deletions
|
@ -82,12 +82,12 @@ class ComposeForm extends ImmutablePureComponent {
|
||||||
handleKeyDown = ({ ctrlKey, keyCode, metaKey, altKey }) => {
|
handleKeyDown = ({ ctrlKey, keyCode, metaKey, altKey }) => {
|
||||||
// We submit the status on control/meta + enter.
|
// We submit the status on control/meta + enter.
|
||||||
if (keyCode === 13 && (ctrlKey || metaKey)) {
|
if (keyCode === 13 && (ctrlKey || metaKey)) {
|
||||||
handleSubmit();
|
this.handleSubmit();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Submit the status with secondary visibility on alt + enter.
|
// Submit the status with secondary visibility on alt + enter.
|
||||||
if (keyCode === 13 && altKey) {
|
if (keyCode === 13 && altKey) {
|
||||||
handleSecondarySubmit();
|
this.handleSecondarySubmit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -151,7 +151,6 @@ class ComposeForm extends ImmutablePureComponent {
|
||||||
|
|
||||||
// Handles the secondary submit button.
|
// Handles the secondary submit button.
|
||||||
handleSecondarySubmit = () => {
|
handleSecondarySubmit = () => {
|
||||||
const { handleSubmit } = this.handlers;
|
|
||||||
const {
|
const {
|
||||||
onChangeVisibility,
|
onChangeVisibility,
|
||||||
sideArm,
|
sideArm,
|
||||||
|
@ -159,7 +158,7 @@ class ComposeForm extends ImmutablePureComponent {
|
||||||
if (sideArm !== 'none' && onChangeVisibility) {
|
if (sideArm !== 'none' && onChangeVisibility) {
|
||||||
onChangeVisibility(sideArm);
|
onChangeVisibility(sideArm);
|
||||||
}
|
}
|
||||||
handleSubmit();
|
this.handleSubmit();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Selects a suggestion from the autofill.
|
// Selects a suggestion from the autofill.
|
||||||
|
|
Loading…
Reference in a new issue