about summary refs log tree commit diff
path: root/src/components/forms/DateField/index.web.tsx
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2025-02-21 11:25:42 -0800
committerGitHub <noreply@github.com>2025-02-21 11:25:42 -0800
commitca7116ec3b834644d89983b7f7f9ee63fe8f1aff (patch)
tree8158cbc4191d37c54835eaa4c579b527355988fd /src/components/forms/DateField/index.web.tsx
parent80e59d31d03afd62d41a301a85b66f6acb772c93 (diff)
downloadvoidsky-ca7116ec3b834644d89983b7f7f9ee63fe8f1aff.tar.zst
connect inputs together in signup (#7809)
Diffstat (limited to 'src/components/forms/DateField/index.web.tsx')
-rw-r--r--src/components/forms/DateField/index.web.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/forms/DateField/index.web.tsx b/src/components/forms/DateField/index.web.tsx
index 057ea1673..00f58202a 100644
--- a/src/components/forms/DateField/index.web.tsx
+++ b/src/components/forms/DateField/index.web.tsx
@@ -34,6 +34,7 @@ const Input = TextField.createInput(InputBase as unknown as typeof TextInput)
 
 export function DateField({
   value,
+  inputRef,
   onChangeDate,
   label,
   isInvalid,
@@ -58,9 +59,9 @@ export function DateField({
       <TextField.Icon icon={CalendarDays} />
       <Input
         value={toSimpleDateString(value)}
+        inputRef={inputRef as React.Ref<TextInput>}
         label={label}
         onChange={handleOnChange}
-        onChangeText={() => {}}
         testID={testID}
         accessibilityHint={accessibilityHint}
         // @ts-expect-error not typed as <input type="date"> even though it is one