diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-03-20 18:02:18 +0000 |
---|---|---|
committer | Samuel Newman <mozzius@protonmail.com> | 2024-03-20 18:02:18 +0000 |
commit | fb17afc99d8fbc4f6b35e2aca0a3bdfda2b447f4 (patch) | |
tree | 15c38eae5dc89665a851b863309c92ab1727677f /src/components/forms/HostingProvider.tsx | |
parent | 708d0fe3e1fafdc6495e78dbba36b7fe087d62a7 (diff) | |
download | voidsky-fb17afc99d8fbc4f6b35e2aca0a3bdfda2b447f4.tar.zst |
dismiss keyboard when opening dialog
Diffstat (limited to 'src/components/forms/HostingProvider.tsx')
-rw-r--r-- | src/components/forms/HostingProvider.tsx | 3 |
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() |