From 2139df738025635a8b91d7f233a0ad7c1076f3ff Mon Sep 17 00:00:00 2001 From: coderwelsch Date: Tue, 7 Nov 2023 10:22:20 +0100 Subject: [PATCH] removed useMemo --- src/components/form-field/search-input/search-input.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/form-field/search-input/search-input.tsx b/src/components/form-field/search-input/search-input.tsx index e7197841..c31fa5d9 100644 --- a/src/components/form-field/search-input/search-input.tsx +++ b/src/components/form-field/search-input/search-input.tsx @@ -22,6 +22,7 @@ export const SearchInput = ({ ...props }: SearchInputProps) => { const inputRef = useRef(null); + const isClearIconShown = !readOnly && !disabled && value !== undefined && value !== ""; const isClearIconShown = useMemo(() => { return !readOnly && !disabled && value?.toString().length;