Skip to content

Commit

Permalink
removed useMemo
Browse files Browse the repository at this point in the history
  • Loading branch information
coderwelsch committed Nov 7, 2023
1 parent f034a48 commit 2139df7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/form-field/search-input/search-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const SearchInput = ({
...props
}: SearchInputProps) => {
const inputRef = useRef<HTMLInputElement>(null);
const isClearIconShown = !readOnly && !disabled && value !== undefined && value !== "";

const isClearIconShown = useMemo(() => {
return !readOnly && !disabled && value?.toString().length;
Expand Down

0 comments on commit 2139df7

Please sign in to comment.