@dbcdk/react-components 0.0.87 → 0.0.88

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.
@@ -79,7 +79,7 @@ export const Popover = forwardRef(function Popover({ trigger: Trigger, children,
79
79
  const togglePopover = useCallback((e) => {
80
80
  var _a, _b;
81
81
  triggerElRef.current =
82
- (_b = (_a = anchorRef === null || anchorRef === void 0 ? void 0 : anchorRef.current) !== null && _a !== void 0 ? _a : containerRef.current) !== null && _b !== void 0 ? _b : e.currentTarget;
82
+ (_b = (_a = anchorRef === null || anchorRef === void 0 ? void 0 : anchorRef.current) !== null && _a !== void 0 ? _a : e.currentTarget) !== null && _b !== void 0 ? _b : containerRef.current;
83
83
  if (isOpen)
84
84
  closePopover('trigger');
85
85
  else
@@ -238,8 +238,8 @@ export const Popover = forwardRef(function Popover({ trigger: Trigger, children,
238
238
  .join(' '), children: Trigger(togglePopover, icon, isOpen) }), mounted &&
239
239
  isOpen &&
240
240
  createPortal(_jsx("div", { id: resolvedContentId, ref: node => {
241
- const mutableContentRef = contentRef;
242
- mutableContentRef.current = node;
241
+ ;
242
+ contentRef.current = node;
243
243
  setOverlayRef(node);
244
244
  }, className: styles.content, style: {
245
245
  top: pos.top,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dbcdk/react-components",
3
- "version": "0.0.87",
3
+ "version": "0.0.88",
4
4
  "description": "Reusable React components for DBC projects",
5
5
  "license": "ISC",
6
6
  "author": "",