Merge pull request #2510 from IbrahimKhan12/fix/2504-composer-double-space-period

fix: keep the composer's autocorrect on where the platform provides one
This commit is contained in:
Bohdan Triapitsyn
2026-08-28 01:22:16 +03:00
committed by GitHub
5 changed files with 135 additions and 6 deletions
@@ -104,6 +104,7 @@ import {
type ComposerEditorHandle,
} from './composer/editor/ComposerEditor';
import { createComposerEditorViewStore } from './composer/editor/viewStore';
import { composerAutoCorrect } from './composer/editor/autocorrect';
import {
appendInlineText,
appendWithLineBreaks,
@@ -2852,7 +2853,7 @@ const ChatInputComponent: React.FC<ChatInputProps> = ({
: t(useCompactChatPlaceholder ? 'chat.chatInput.placeholder.chatCompact' : 'chat.chatInput.placeholder.chat')
: t('chat.chatInput.placeholder.selectSession')}
editable={Boolean(currentSessionId || newSessionDraftOpen)}
autoCorrect={isMobile}
autoCorrect={composerAutoCorrect({ isMobile })}
autoCapitalize={isMobile ? 'sentences' : 'none'}
spellCheck={isMobile || inputSpellcheckEnabled}
fillContainer={isComposerExpanded}