From d721e2b2e485ebae9f58ba0273f7e14c421bc0a5 Mon Sep 17 00:00:00 2001 From: Marcus Notheis Date: Tue, 1 Oct 2019 13:51:07 +0200 Subject: [PATCH] fix(web-components): Fix tooltip handling (#166) * fix(SideNavigation): Don't render zero if no footerItems present Fixes #164 * fix(web-components): Fix tooltip handling --- .../src/components/SideNavigationListItem/index.tsx | 11 +++-------- packages/main/src/internal/withWebComponent.tsx | 4 ++-- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/packages/main/src/components/SideNavigationListItem/index.tsx b/packages/main/src/components/SideNavigationListItem/index.tsx index 756cac510bb..a248af61d03 100644 --- a/packages/main/src/components/SideNavigationListItem/index.tsx +++ b/packages/main/src/components/SideNavigationListItem/index.tsx @@ -91,13 +91,11 @@ const SideNavigationListItem: FC = forwardRef( return ( <> - {/* - // @ts-ignore */} = forwardRef( openBy={} > - {/* - // @ts-ignore */} - + {text} {validChildren.map((child: any, index) => { return ( - // @ts-ignore {child.props.text} diff --git a/packages/main/src/internal/withWebComponent.tsx b/packages/main/src/internal/withWebComponent.tsx index ec5e93b7ffc..70e94e42dbb 100644 --- a/packages/main/src/internal/withWebComponent.tsx +++ b/packages/main/src/internal/withWebComponent.tsx @@ -211,9 +211,9 @@ export function withWebComponent(WebComponent): RefForwardingComponent + {Object.keys(slots).map((slot) => { if (actualSlotProps[slot]) { return Children.map(actualSlotProps[slot], (item: ReactElement, index) =>