Fix send button disabled when sharing post via DM without text (#10355)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Samuel Newman
2026-04-24 13:50:08 +03:00
committed by GitHub
parent a90bb66d67
commit deb3f26d3e
@@ -136,7 +136,8 @@ export function MessageInput({
scrollEnabled: isInputScrollable.get(),
}))
const submitDisabled = needsEmailVerification || message.trim().length === 0
const submitDisabled =
needsEmailVerification || (!hasEmbed && message.trim().length === 0)
const blur = useCallback(() => {
inputRef.current?.blur()