From fb17afc99d8fbc4f6b35e2aca0a3bdfda2b447f4 Mon Sep 17 00:00:00 2001
From: Samuel Newman <mozzius@protonmail.com>
Date: Wed, 20 Mar 2024 18:02:18 +0000
Subject: dismiss keyboard when opening dialog

---
 src/components/forms/HostingProvider.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/components/forms/HostingProvider.tsx')

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()
-- 
cgit 1.4.1

