Skip to content

Commit a8d862f

Browse files
committed
fix(react-popover): fix linting error
1 parent 9ef8ac5 commit a8d862f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/react-components/react-popover/library/src/components/PopoverSurface/usePopoverSurface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const usePopoverSurface_unstable = (
5757
const size = usePopoverContext_unstable(context => context.size);
5858
const withArrow = usePopoverContext_unstable(context => context.withArrow);
5959
const appearance = usePopoverContext_unstable(context => context.appearance);
60-
const trapFocus = usePopoverContext_unstable(context => context.trapFocus);
60+
const trapFocus = !!usePopoverContext_unstable(context => context.trapFocus);
6161
const inertTrapFocus = usePopoverContext_unstable(context => context.inertTrapFocus);
6262
const inline = usePopoverContext_unstable(context => context.inline);
6363
const motionForwardedRef = useMotionForwardedRef();

0 commit comments

Comments
 (0)