diff --git a/frontend/app/element/search.tsx b/frontend/app/element/search.tsx index 25bc56dbf..a6dadcdbf 100644 --- a/frontend/app/element/search.tsx +++ b/frontend/app/element/search.tsx @@ -1,4 +1,4 @@ -import { autoUpdate, FloatingPortal, Middleware, offset, useDismiss, useFloating } from "@floating-ui/react"; +import { autoUpdate, FloatingPortal, Middleware, offset, useFloating } from "@floating-ui/react"; import clsx from "clsx"; import { atom, useAtom } from "jotai"; import { memo, useCallback, useEffect, useMemo, useRef } from "react"; @@ -83,8 +83,6 @@ const SearchComponent = ({ }, }); - const dismiss = useDismiss(context); - const onPrevWrapper = useCallback( () => (onPrev ? onPrev() : setIndex((index - 1) % numResults)), [onPrev, index, numResults] @@ -133,7 +131,7 @@ const SearchComponent = ({ <> {isOpen && ( -
+