From a78e6ff6730adf0b7b0ce1990dd919883cf9ea57 Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Thu, 16 Feb 2023 13:58:26 +0200 Subject: [PATCH] Do not dismiss keyboard when app is brought to the foreground (#7143) --- app/components/post_draft/post_input/post_input.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/components/post_draft/post_input/post_input.tsx b/app/components/post_draft/post_input/post_input.tsx index cdd48c535..f0aff5092 100644 --- a/app/components/post_draft/post_input/post_input.tsx +++ b/app/components/post_draft/post_input/post_input.tsx @@ -134,12 +134,8 @@ export default function PostInput({ return {...style.input, maxHeight}; }, [maxHeight, style.input]); - const blur = () => { - inputRef.current?.blur(); - }; - const handleAndroidKeyboard = () => { - blur(); + onBlur(); }; const onBlur = useCallback(() => {