about summary refs log tree commit diff
path: root/src/components/forms
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-03-20 18:02:18 +0000
committerSamuel Newman <mozzius@protonmail.com>2024-03-20 18:02:18 +0000
commitfb17afc99d8fbc4f6b35e2aca0a3bdfda2b447f4 (patch)
tree15c38eae5dc89665a851b863309c92ab1727677f /src/components/forms
parent708d0fe3e1fafdc6495e78dbba36b7fe087d62a7 (diff)
downloadvoidsky-fb17afc99d8fbc4f6b35e2aca0a3bdfda2b447f4.tar.zst
dismiss keyboard when opening dialog
Diffstat (limited to 'src/components/forms')
-rw-r--r--src/components/forms/HostingProvider.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/forms/HostingProvider.tsx b/src/components/forms/HostingProvider.tsx
index 1653b0da4..11d76316d 100644
--- a/src/components/forms/HostingProvider.tsx
+++ b/src/components/forms/HostingProvider.tsx
@@ -1,5 +1,5 @@
 import React from 'react'
-import {View} from 'react-native'
+import {Keyboard, View} from 'react-native'
 import {msg} from '@lingui/macro'
 import {useLingui} from '@lingui/react'
 
@@ -27,6 +27,7 @@ export function HostingProvider({
   const {_} = useLingui()
 
   const onPressSelectService = React.useCallback(() => {
+    Keyboard.dismiss()
     serverInputControl.open()
     if (onOpenDialog) {
       onOpenDialog()