From d38583781200437b1a01f8a016694c4a8d036aad Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Tue, 6 Feb 2024 12:13:09 -0800 Subject: Go back to autofocus and small ui tweak --- src/view/com/modals/AddAppPasswords.tsx | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'src') diff --git a/src/view/com/modals/AddAppPasswords.tsx b/src/view/com/modals/AddAppPasswords.tsx index 4508e6857..a8913dd54 100644 --- a/src/view/com/modals/AddAppPasswords.tsx +++ b/src/view/com/modals/AddAppPasswords.tsx @@ -137,17 +137,6 @@ export function Component({}: {}) { } } - const textInputRef = React.useCallback((node: TextInput | null) => { - if (!node) { - return - } - - // `selectTextOnFocus` isn't working with `autoFocus={true}` or without a timeout going. - setTimeout(() => { - node.focus() - }, 0) - }, []) - return ( @@ -171,7 +160,6 @@ export function Component({}: {}) { {!appPassword ? (