about summary refs log tree commit diff
path: root/src/components/forms/DateField/index.tsx
diff options
context:
space:
mode:
authorKuwa Lee <kuwalee1069@gmail.com>2024-06-19 02:47:38 +0800
committerGitHub <noreply@github.com>2024-06-19 02:47:38 +0800
commita6d49062e6d50b7c9a6c0d50c38fcfeb8f63e46f (patch)
tree65ef4f28c174d1da9c8f7085635b05b754e95746 /src/components/forms/DateField/index.tsx
parentfad73fe9281baee8409a65a10923749ec24dfd68 (diff)
parent35e54e24a0b08ce0f2e3389aeb4fb0f29778170e (diff)
downloadvoidsky-a6d49062e6d50b7c9a6c0d50c38fcfeb8f63e46f.tar.zst
Merge branch 'bluesky-social:main' into zh
Diffstat (limited to 'src/components/forms/DateField/index.tsx')
-rw-r--r--src/components/forms/DateField/index.tsx7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/forms/DateField/index.tsx b/src/components/forms/DateField/index.tsx
index e231ac5ba..c916f4efc 100644
--- a/src/components/forms/DateField/index.tsx
+++ b/src/components/forms/DateField/index.tsx
@@ -1,5 +1,5 @@
 import React from 'react'
-import {View} from 'react-native'
+import {Keyboard, View} from 'react-native'
 import DatePicker from 'react-native-date-picker'
 import {msg, Trans} from '@lingui/macro'
 import {useLingui} from '@lingui/react'
@@ -49,7 +49,10 @@ export function DateField({
       <DateFieldButton
         label={label}
         value={value}
-        onPress={control.open}
+        onPress={() => {
+          Keyboard.dismiss()
+          control.open()
+        }}
         isInvalid={isInvalid}
         accessibilityHint={accessibilityHint}
       />