From fae2a579c2844406f8d306e1f6cb512b96af5e59 Mon Sep 17 00:00:00 2001 From: Matt Dunn-Rankin Date: Sat, 2 May 2020 22:07:47 -0700 Subject: [PATCH] focus the radio when opening PosePicker --- src/app/PosePicker.js | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/src/app/PosePicker.js b/src/app/PosePicker.js index 2158b18a..c55be173 100644 --- a/src/app/PosePicker.js +++ b/src/app/PosePicker.js @@ -128,13 +128,22 @@ function PosePicker({ outfitState, onLockFocus, onUnlockFocus }) { - + - + @@ -142,13 +151,25 @@ function PosePicker({ outfitState, onLockFocus, onUnlockFocus }) { - + - + - + @@ -184,7 +205,7 @@ const GENDER_PRESENTATION_STRINGS = { FEMININE: "Feminine", }; -function PoseButton({ pose, speciesId }) { +function PoseButton({ pose, speciesId, inputRef }) { const theme = useTheme(); if (!pose) { @@ -212,6 +233,7 @@ function PoseButton({ pose, speciesId }) { name="pose" value={`${pose.emotion}-${pose.genderPresentation}`} checked={pose.isSelected} + ref={inputRef || null} />