diff --git a/frontend/src/components/message/PromptInput.command.test.tsx b/frontend/src/components/message/PromptInput.command.test.tsx index 71e78c42..f560876d 100644 --- a/frontend/src/components/message/PromptInput.command.test.tsx +++ b/frontend/src/components/message/PromptInput.command.test.tsx @@ -643,8 +643,9 @@ describe('PromptInput command submission', () => { const input = await screen.findByPlaceholderText('Send a message...') expect(input).toHaveAttribute('autocomplete', 'off') - expect(input).toHaveAttribute('autocorrect', 'on') - expect(input).toHaveAttribute('spellcheck', 'true') + expect(input).toHaveAttribute('autocorrect', 'off') + expect(input).toHaveAttribute('autocapitalize', 'off') + expect(input).toHaveAttribute('spellcheck', 'false') fireEvent.focus(input) fireEvent.change(input, { target: { value: 'text' } }) expect(screen.getByRole('button', { name: 'bash !' })).toBeDisabled() diff --git a/frontend/src/components/message/PromptInput.tsx b/frontend/src/components/message/PromptInput.tsx index 0f2af3cb..c951ed07 100644 --- a/frontend/src/components/message/PromptInput.tsx +++ b/frontend/src/components/message/PromptInput.tsx @@ -1281,9 +1281,9 @@ return ( onDragLeave={handleDragLeave} onDrop={handleDrop} autoComplete="off" - autoCorrect={isBashMode ? 'off' : 'on'} - autoCapitalize={isBashMode ? 'off' : 'sentences'} - spellCheck={!isBashMode} + autoCorrect="off" + autoCapitalize="off" + spellCheck={false} placeholder={ isBashMode ? "Enter bash command..."