fix: attempt to disable iOS QuickType bar with form wrapper
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user