@megha-ui/react 1.2.539 → 1.2.541

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.
@@ -56,7 +56,7 @@ const GridRow = ({ item, rowStyle, cellStyle, rowHeight, bulkSelect, selectedRow
56
56
  }, [columns]);
57
57
  const checkAvailableForTooltip = (id) => {
58
58
  setTimeout(() => {
59
- var _a, _b;
59
+ var _a;
60
60
  const tooltips = document.querySelectorAll(".react-tooltip");
61
61
  let currentTooltip = [];
62
62
  tooltips.forEach((value) => {
@@ -65,14 +65,13 @@ const GridRow = ({ item, rowStyle, cellStyle, rowHeight, bulkSelect, selectedRow
65
65
  }
66
66
  });
67
67
  currentTooltip = currentTooltip[0];
68
- const { y } = (_a = currentTooltip.getBoundingClientRect()) !== null && _a !== void 0 ? _a : {};
69
- if (y && currentTooltip) {
68
+ if (currentTooltip) {
70
69
  const gridContent = document.querySelector("#grid-content");
71
- const { height } = (_b = gridContent === null || gridContent === void 0 ? void 0 : gridContent.getBoundingClientRect()) !== null && _b !== void 0 ? _b : {};
70
+ const { height } = (_a = gridContent === null || gridContent === void 0 ? void 0 : gridContent.getBoundingClientRect()) !== null && _a !== void 0 ? _a : {};
72
71
  if (height) {
73
- const availableHeight = height - y;
72
+ const availableHeight = height;
74
73
  const styles = currentTooltip.getAttribute("style");
75
- currentTooltip.setAttribute("style", `${styles} max-height: ${availableHeight}px; overflow: auto;`);
74
+ currentTooltip.setAttribute("style", `${styles} max-height: ${availableHeight}px; overflow: hidden auto;`);
76
75
  }
77
76
  }
78
77
  }, 50);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.539",
3
+ "version": "1.2.541",
4
4
  "description": "A collection of reusable UI components for React applications, built with TypeScript.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",