From 1a314023064af7c1a6b917f4aee0a4dccac7f373 Mon Sep 17 00:00:00 2001 From: dariakoko Date: Fri, 25 Jul 2025 16:54:24 +0200 Subject: [PATCH] fix: dismiss keyboard before proceeding --- src/app/Scenes/SavedSearchAlert/SavedSearchAlertForm.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/Scenes/SavedSearchAlert/SavedSearchAlertForm.tsx b/src/app/Scenes/SavedSearchAlert/SavedSearchAlertForm.tsx index 4e188ae1f9b..20443f07557 100644 --- a/src/app/Scenes/SavedSearchAlert/SavedSearchAlertForm.tsx +++ b/src/app/Scenes/SavedSearchAlert/SavedSearchAlertForm.tsx @@ -14,7 +14,7 @@ import { goBack, navigate, popToRoot } from "app/system/navigation/navigate" import { refreshSavedAlerts } from "app/utils/refreshHelpers" import { FormikProvider, useFormik } from "formik" import { useEffect, useState } from "react" -import { Alert, StyleProp, ViewStyle } from "react-native" +import { Alert, Keyboard, StyleProp, ViewStyle } from "react-native" import { useTracking } from "react-tracking" import { useFirstMountState } from "react-use/lib/useFirstMountState" import { Form } from "./Components/Form" @@ -88,6 +88,8 @@ export const SavedSearchAlertForm: React.FC = (props) enableReinitialize: true, initialErrors: {}, onSubmit: async (values) => { + Keyboard.dismiss() + const userAlertSettings: SavedSearchAlertFormValues = { name: values.name, email: values.email,