diff --git a/apps/docs/components/marketing/a11y-otb.tsx b/apps/docs/components/marketing/a11y-otb.tsx index eafbda9bfd..e77cdbe38d 100644 --- a/apps/docs/components/marketing/a11y-otb.tsx +++ b/apps/docs/components/marketing/a11y-otb.tsx @@ -7,7 +7,6 @@ import { Link as NextUILink, Dropdown, DropdownSection, - DropdownTrigger, DropdownMenu, DropdownItem, Tooltip, @@ -22,7 +21,7 @@ import { } from "@nextui-org/shared-icons"; import Link from "next/link"; import dynamic from "next/dynamic"; -import {useEffect, useRef, useState} from "react"; +import {Fragment, useEffect, useRef, useState} from "react"; import {FeaturesGrid} from "./features-grid"; @@ -79,6 +78,8 @@ export const A11yOtb = () => { const ref = useRef(null); + const triggerRef = useRef(null); + const isMobile = useIsMobile(); const isInView = useInView(ref, { @@ -155,6 +156,15 @@ export const A11yOtb = () => { + {ref.current && ( { portalContainer={ref.current} shouldBlockScroll={false} shouldFlip={isMobile} - onOpenChange={(open) => setIsDropdownOpen(open)} + triggerRef={triggerRef} > - - - +