@db-ux/ngx-core-components 2.2.2 → 2.2.3

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.
@@ -1538,6 +1538,21 @@ const handleFixedDropdown = (element, parent, placement) => {
1538
1538
  element.style.position = 'fixed';
1539
1539
  };
1540
1540
  const getFloatingProps = (element, parent, placement) => {
1541
+ if (!element || !parent) {
1542
+ return {
1543
+ top: 0,
1544
+ bottom: 0,
1545
+ right: 0,
1546
+ height: 0,
1547
+ width: 0,
1548
+ left: 0,
1549
+ childHeight: 0,
1550
+ childWidth: 0,
1551
+ correctedPlacement: placement,
1552
+ innerWidth: window.innerWidth,
1553
+ innerHeight: window.innerHeight
1554
+ };
1555
+ }
1541
1556
  const childRect = element.getBoundingClientRect();
1542
1557
  const { top, height, bottom, right, left, width } = parent.getBoundingClientRect();
1543
1558
  const { innerHeight, innerWidth } = window;