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
This commit is contained in:
@@ -94,7 +94,6 @@ const Player1Step = ({ playerNameHistory, onNext, onCancel, initialValue = '' })
|
|||||||
placeholder="Name Spieler 1"
|
placeholder="Name Spieler 1"
|
||||||
value={player1}
|
value={player1}
|
||||||
onInput={e => setPlayer1(e.target.value)}
|
onInput={e => setPlayer1(e.target.value)}
|
||||||
autoFocus
|
|
||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
aria-label="Name Spieler 1"
|
aria-label="Name Spieler 1"
|
||||||
style={{ fontSize: '1.2rem', minHeight: 48, marginTop: 12, marginBottom: 12, width: '100%', paddingRight: 44 }}
|
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"
|
placeholder="Name Spieler 2"
|
||||||
value={player2}
|
value={player2}
|
||||||
onInput={e => setPlayer2(e.target.value)}
|
onInput={e => setPlayer2(e.target.value)}
|
||||||
autoFocus
|
|
||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
aria-label="Name Spieler 2"
|
aria-label="Name Spieler 2"
|
||||||
style={{ fontSize: '1.2rem', minHeight: 48, marginTop: 12, marginBottom: 12, width: '100%', paddingRight: 44 }}
|
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)"
|
placeholder="Name Spieler 3 (optional)"
|
||||||
value={player3}
|
value={player3}
|
||||||
onInput={e => setPlayer3(e.target.value)}
|
onInput={e => setPlayer3(e.target.value)}
|
||||||
autoFocus
|
|
||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
aria-label="Name Spieler 3"
|
aria-label="Name Spieler 3"
|
||||||
style={{ fontSize: '1.2rem', minHeight: 48, marginTop: 12, marginBottom: 12, width: '100%', paddingRight: 44 }}
|
style={{ fontSize: '1.2rem', minHeight: 48, marginTop: 12, marginBottom: 12, width: '100%', paddingRight: 44 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user