Quick fix to ensure disable 2fa dialog adjusts to keyboard (#3658)

zio/stable
Paul Frazee 2024-04-22 19:43:54 -07:00 committed by GitHub
parent 710e913024
commit 30c2c05103
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -144,7 +144,7 @@ export function DisableEmail2FADialog({
</TextField.LabelText> </TextField.LabelText>
<TextField.Root> <TextField.Root>
<TextField.Icon icon={Lock} /> <TextField.Icon icon={Lock} />
<TextField.Input <Dialog.Input
testID="confirmationCode" testID="confirmationCode"
label={_(msg`Confirmation code`)} label={_(msg`Confirmation code`)}
autoCapitalize="none" autoCapitalize="none"
@ -153,6 +153,7 @@ export function DisableEmail2FADialog({
autoComplete="off" autoComplete="off"
value={confirmationCode} value={confirmationCode}
onChangeText={setConfirmationCode} onChangeText={setConfirmationCode}
onSubmitEditing={onConfirmDisable}
editable={!isProcessing} editable={!isProcessing}
/> />
</TextField.Root> </TextField.Root>