@dbcdk/react-components 0.0.76 → 0.0.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -250,7 +250,8 @@ export const Popover = forwardRef(function Popover({ trigger: Trigger, children,
|
|
|
250
250
|
maxHeight: `clamp(100px, calc(100vh - ${viewportPadding * 2}px), ${contentMaxHeightPx}px)`,
|
|
251
251
|
visibility: positioned ? undefined : 'hidden',
|
|
252
252
|
}, "data-cy": dataCy !== null && dataCy !== void 0 ? dataCy : 'popover-content', children: typeof children === 'function'
|
|
253
|
-
?
|
|
253
|
+
? // eslint-disable-next-line react-hooks/refs
|
|
254
|
+
children(() => closePopover('api'))
|
|
254
255
|
: children }), document.body)] }));
|
|
255
256
|
});
|
|
256
257
|
Popover.displayName = 'Popover';
|