We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2da7cfb commit d6d6c60Copy full SHA for d6d6c60
packages/fluentui/react-northstar/src/components/Portal/Portal.tsx
@@ -99,7 +99,7 @@ export const Portal: React.FC<PortalProps> & FluentComponentStaticProps<PortalPr
99
100
const renderPortal = (): JSX.Element | undefined => {
101
const contentToRender = childrenExist(children) ? children : content;
102
- const focusTrapZoneProps = (_.keys(trapFocus).length && trapFocus) || {};
+ const focusTrapZoneProps = typeof trapFocus === 'boolean' ? {} : trapFocus;
103
return (
104
open && (
105
<Ref innerRef={portalRef}>
0 commit comments