FezVrasta/popper.js

View on GitHub
packages/react/src/components/FloatingPortal.tsx

Summary

Maintainability
B
5 hrs
Test Coverage

Function FloatingPortal has 87 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function FloatingPortal(props: FloatingPortalProps): JSX.Element {
  const {children, id, root = null, preserveTabOrder = true} = props;

  const portalNode = useFloatingPortalNode({id, root});
  const [focusManagerState, setFocusManagerState] =
Severity: Major
Found in packages/react/src/components/FloatingPortal.tsx - About 3 hrs to fix

Function useFloatingPortalNode has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function useFloatingPortalNode(
  props: {
    id?: string;
    root?: HTMLElement | null | React.MutableRefObject<HTMLElement | null>;
  } = {},
Severity: Minor
Found in packages/react/src/components/FloatingPortal.tsx - About 1 hr to fix

There are no issues that match your filters.

Category
Status