mm
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user