Skip to content

Commit d6d6c60

Browse files
committed
fix(react-norhtstar): resolve TS errors exposed by TS 4.7
1 parent 2da7cfb commit d6d6c60

File tree

1 file changed

+1
-1
lines changed
  • packages/fluentui/react-northstar/src/components/Portal

1 file changed

+1
-1
lines changed

packages/fluentui/react-northstar/src/components/Portal/Portal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export const Portal: React.FC<PortalProps> & FluentComponentStaticProps<PortalPr
9999

100100
const renderPortal = (): JSX.Element | undefined => {
101101
const contentToRender = childrenExist(children) ? children : content;
102-
const focusTrapZoneProps = (_.keys(trapFocus).length && trapFocus) || {};
102+
const focusTrapZoneProps = typeof trapFocus === 'boolean' ? {} : trapFocus;
103103
return (
104104
open && (
105105
<Ref innerRef={portalRef}>

0 commit comments

Comments
 (0)