mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 08:48:53 +00:00
Fix missing alt-text confirmation modal not opening (#3281)
This commit is contained in:
@@ -129,9 +129,9 @@ class ComposeForm extends ImmutablePureComponent {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
this.textareaRef.current?.focus();
|
this.textareaRef.current?.focus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.blurOnEscape(e);
|
this.blurOnEscape(e);
|
||||||
}
|
};
|
||||||
|
|
||||||
getFulltextForCharacterCounting = () => {
|
getFulltextForCharacterCounting = () => {
|
||||||
return [this.props.spoiler? this.props.spoilerText: '', countableText(this.props.text)].join('');
|
return [this.props.spoiler? this.props.spoilerText: '', countableText(this.props.text)].join('');
|
||||||
@@ -156,7 +156,7 @@ class ComposeForm extends ImmutablePureComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.props.onSubmit({
|
this.props.onSubmit({
|
||||||
missingAltTextModal: missingAltTextModal && this.props.missingAltText && this.props.privacy !== 'direct',
|
missingAltText: missingAltTextModal && this.props.missingAltText && this.props.privacy !== 'direct',
|
||||||
quoteToPrivate: this.props.quoteToPrivate,
|
quoteToPrivate: this.props.quoteToPrivate,
|
||||||
overridePrivacy,
|
overridePrivacy,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user