From 3675d8e8b25411a84622c57f9c66c05158a99596 Mon Sep 17 00:00:00 2001 From: Hoa Phan Date: Fri, 11 Oct 2024 15:40:00 +0700 Subject: [PATCH] chore: clean code --- src/components/Dropdown/index.tsx | 6 +----- src/components/MultiSelect/index.tsx | 4 ---- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/components/Dropdown/index.tsx b/src/components/Dropdown/index.tsx index b6cf9d2..9c6a599 100644 --- a/src/components/Dropdown/index.tsx +++ b/src/components/Dropdown/index.tsx @@ -181,12 +181,8 @@ const DropdownComponent: ( if (onBlur) { onBlur(); } - - if (keyboardHeight > 0) { - return Keyboard.dismiss(); - } } - }, [disable, keyboardHeight, onBlur]); + }, [disable, onBlur]); const font = useCallback(() => { if (fontFamily) { diff --git a/src/components/MultiSelect/index.tsx b/src/components/MultiSelect/index.tsx index 3b1bcf6..f19c8e9 100644 --- a/src/components/MultiSelect/index.tsx +++ b/src/components/MultiSelect/index.tsx @@ -181,10 +181,6 @@ const MultiSelectComponent: ( if (onBlur) { onBlur(); } - - if (keyboardHeight > 0) { - return Keyboard.dismiss(); - } } };