fix: attempt to disable iOS QuickType bar with form wrapper

This commit is contained in:
Alexej Wolff
2026-02-11 16:26:15 +01:00
parent e2e7e211d5
commit e5c7bd1b0d
2 changed files with 14 additions and 5 deletions
+8 -4
View File
@@ -588,7 +588,7 @@ export default function GamePage() {
</div>
*/}
<div className="input-container">
<form className="input-container" onSubmit={(e) => { e.preventDefault(); handleSend(); }}>
<textarea
ref={inputRef}
value={input}
@@ -602,26 +602,30 @@ export default function GamePage() {
placeholder="Что ты хочешь сделать?..."
disabled={isLoading}
rows={1}
name="chat-input"
autoComplete="off"
autoCorrect="off"
autoCapitalize="off"
spellCheck={false}
enterKeyHint="send"
data-form-type="other"
data-lpignore="true"
data-gramm="false"
/>
{isLoading ? (
<button onClick={handleStop} className="send-btn stop-btn">
<button type="button" onClick={handleStop} className="send-btn stop-btn">
</button>
) : (
<button
onClick={handleSend}
type="submit"
disabled={!input.trim()}
className="send-btn"
>
</button>
)}
</div>
</form>
</div>
</div>
);