This commit is contained in:
2026-11-24 16:17:45 +08:00
parent a3dbdd7d11
commit ea56e4cabd
140 changed files with 1214 additions and 702 deletions
@@ -1,5 +1,5 @@
import type { CSSProperties } from "react";
import type { CommonProps } from "../../utils/CommonProps";
import type { CommonProps } from "../../utils/common-props";
import { usePopoverContext } from "./use-popover-context";
import {
FloatingArrow,
@@ -23,6 +23,7 @@ export const PopoverDropdown = (props: PopoverDropdownProps) => {
context,
arrowRef,
isMounted,
isOpen,
transitionStyles,
arrowWidth,
arrowHeight,
@@ -57,14 +58,15 @@ export const PopoverDropdown = (props: PopoverDropdownProps) => {
return (
<>
{isMounted && (
{isOpen && (
<FloatingPortal>
<FloatingFocusManager context={context} modal={false}>
<div
className={rootClass}
{...rest}
ref={refs.setFloating}
className={rootClass}
style={rootStyle}
{...getFloatingProps({ ...rest })}
{...getFloatingProps()}
>
{children}
<FloatingArrow