diff --git a/src/components/forms/filters/InputSearch.tsx b/src/components/forms/filters/InputSearch.tsx index c0f0e9a..1c983e3 100644 --- a/src/components/forms/filters/InputSearch.tsx +++ b/src/components/forms/filters/InputSearch.tsx @@ -43,7 +43,8 @@ export function InputSearch({ top, onResultClick, }: BookSearchResultsType) { - const containerRef = useRef(null); + // const containerRef = useRef(null); + const containerRef = useRef(null); const colorIcons = useColorModeValue('gray.700', 'gray.300'); const bgInput = useColorModeValue('white', 'black'); const colorInput = useColorModeValue('gray.900', 'gray.100'); @@ -70,11 +71,11 @@ export function InputSearch({ useOutsideClick({ ref: containerRef, - handler: () => { - if (search.query) { - setSearch({ ...search, query: '' }); - } - }, + // handler: () => { + // if (search.query) { + // setSearch({ ...search, query: '' }); + // } + // }, }); useEffect(() => { @@ -129,7 +130,7 @@ export function InputSearch({ return ( <> - + @@ -184,7 +185,6 @@ export function InputSearch({ p='4' bg={colorContainerBg} color={colorContainer} - ref={containerRef} fontWeight='500' position={{ base: 'inherit', md: 'absolute' }} top={top}