packages/react/src/components/FloatingPortal.tsx
Function FloatingPortal
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function FloatingPortal(props: FloatingPortalProps): JSX.Element {
const {children, id, root = null, preserveTabOrder = true} = props;
const portalNode = useFloatingPortalNode({id, root});
const [focusManagerState, setFocusManagerState] =
- Create a ticketCreate a ticket
Function useFloatingPortalNode
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function useFloatingPortalNode(
props: {
id?: string;
root?: HTMLElement | null | React.MutableRefObject<HTMLElement | null>;
} = {},
- Create a ticketCreate a ticket