Skip to content

Commit

Permalink
fix(react-norhtstar): resolve TS errors exposed by TS 4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Hotell committed Jun 5, 2023
1 parent 2da7cfb commit d6d6c60
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const Portal: React.FC<PortalProps> & FluentComponentStaticProps<PortalPr

const renderPortal = (): JSX.Element | undefined => {
const contentToRender = childrenExist(children) ? children : content;
const focusTrapZoneProps = (_.keys(trapFocus).length && trapFocus) || {};
const focusTrapZoneProps = typeof trapFocus === 'boolean' ? {} : trapFocus;
return (
open && (
<Ref innerRef={portalRef}>
Expand Down

0 comments on commit d6d6c60

Please sign in to comment.