diff options
author | Paul Frazee <pfrazee@gmail.com> | 2024-02-06 12:13:09 -0800 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2024-02-06 12:13:09 -0800 |
commit | d38583781200437b1a01f8a016694c4a8d036aad (patch) | |
tree | 4ce1b85ca370c0e68af146af74fa5f4ad337a67d /src | |
parent | ed8055127819d1918b9c8b296612983a3681157a (diff) | |
download | voidsky-d38583781200437b1a01f8a016694c4a8d036aad.tar.zst |
Go back to autofocus and small ui tweak
Diffstat (limited to 'src')
-rw-r--r-- | src/view/com/modals/AddAppPasswords.tsx | 14 |
1 files changed, 1 insertions, 13 deletions
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 ( <View style={[styles.container, pal.view]} testID="addAppPasswordsModal"> <View> @@ -171,7 +160,6 @@ export function Component({}: {}) { {!appPassword ? ( <View style={[pal.btn, styles.textInputWrapper]}> <TextInput - ref={textInputRef} style={[styles.input, pal.text]} onChangeText={_onChangeText} value={name} @@ -180,6 +168,7 @@ export function Component({}: {}) { autoCorrect={false} autoComplete="off" autoCapitalize="none" + autoFocus={true} maxLength={32} selectTextOnFocus={true} blurOnSubmit={true} @@ -262,7 +251,6 @@ const styles = StyleSheet.create({ width: '100%', paddingVertical: 10, paddingHorizontal: 8, - marginTop: 6, fontSize: 17, letterSpacing: 0.25, fontWeight: '400', |