From 9d6a4c42f7ba5bb5774d798a4e04228c28be17c9 Mon Sep 17 00:00:00 2001 From: Jonah Snider Date: Sun, 2 Jan 2022 22:53:10 -0800 Subject: [PATCH 1/2] feat: autofocus text input in `Form` component --- src/components/Form.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Form.tsx b/src/components/Form.tsx index 55c61e8..59bc92a 100644 --- a/src/components/Form.tsx +++ b/src/components/Form.tsx @@ -124,6 +124,7 @@ const InputView = styled.input.attrs({ autocorrect: 'off', autocapitalize: 'off', spellcheck: 'false', + autofocus: '', })` width: 100%; border: none; From dd2f3941e7eb8db82360cbc0b4a23399c2aa080f Mon Sep 17 00:00:00 2001 From: Jonah Snider Date: Sun, 2 Jan 2022 22:55:46 -0800 Subject: [PATCH 2/2] refactor: fix attribute name --- src/components/Form.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Form.tsx b/src/components/Form.tsx index 59bc92a..af53892 100644 --- a/src/components/Form.tsx +++ b/src/components/Form.tsx @@ -124,7 +124,7 @@ const InputView = styled.input.attrs({ autocorrect: 'off', autocapitalize: 'off', spellcheck: 'false', - autofocus: '', + autoFocus: true, })` width: 100%; border: none;