From 592ba57286542933e73aff677c4cf5aea9eecc58 Mon Sep 17 00:00:00 2001 From: Frank Schwenk Date: Tue, 24 Jun 2025 10:13:30 +0200 Subject: [PATCH] fix(ui): prevent auto keyboard popup on player select - Removed autoFocus from player input fields in new game creation - Prevents on-screen keyboard from opening automatically on mobile Refs #26 --- src/components/NewGame.jsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/components/NewGame.jsx b/src/components/NewGame.jsx index f38a63c..3866736 100644 --- a/src/components/NewGame.jsx +++ b/src/components/NewGame.jsx @@ -94,7 +94,6 @@ const Player1Step = ({ playerNameHistory, onNext, onCancel, initialValue = '' }) placeholder="Name Spieler 1" value={player1} onInput={e => setPlayer1(e.target.value)} - autoFocus autoComplete="off" aria-label="Name Spieler 1" style={{ fontSize: '1.2rem', minHeight: 48, marginTop: 12, marginBottom: 12, width: '100%', paddingRight: 44 }} @@ -254,7 +253,6 @@ const Player2Step = ({ playerNameHistory, onNext, onCancel, initialValue = '' }) placeholder="Name Spieler 2" value={player2} onInput={e => setPlayer2(e.target.value)} - autoFocus autoComplete="off" aria-label="Name Spieler 2" style={{ fontSize: '1.2rem', minHeight: 48, marginTop: 12, marginBottom: 12, width: '100%', paddingRight: 44 }} @@ -391,7 +389,6 @@ const Player3Step = ({ playerNameHistory, onNext, onCancel, initialValue = '' }) placeholder="Name Spieler 3 (optional)" value={player3} onInput={e => setPlayer3(e.target.value)} - autoFocus autoComplete="off" aria-label="Name Spieler 3" style={{ fontSize: '1.2rem', minHeight: 48, marginTop: 12, marginBottom: 12, width: '100%', paddingRight: 44 }}