Fix missing alt-text confirmation modal not opening (#3281)

This commit is contained in:
Claire
2025-11-15 12:03:56 +01:00
parent b2506cc110
commit e6c8958d07

View File

@@ -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,
}); });