From b7eabfbe564f5eedde2947ea85266581b0190aff Mon Sep 17 00:00:00 2001 From: coderwelsch Date: Tue, 7 Nov 2023 10:44:22 +0100 Subject: [PATCH] improved classNames to use inset-y, slightly improved styling --- .../form-field/search-input/search-input.tsx | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/components/form-field/search-input/search-input.tsx b/src/components/form-field/search-input/search-input.tsx index 0502f752..0528428b 100644 --- a/src/components/form-field/search-input/search-input.tsx +++ b/src/components/form-field/search-input/search-input.tsx @@ -31,7 +31,7 @@ export const SearchInput = ({ }, [autoSelect]); const handleKeyDown = useCallback( - (event: React.KeyboardEvent) => { + (event: React.KeyboardEvent) => { if (event.key === "Enter" || event.key === " ") { event.preventDefault(); event.stopPropagation(); @@ -75,15 +75,16 @@ export const SearchInput = ({ /> {isClearIconShown ? ( -
- +
+
) : null}