@alaarab/ogrid-react 2.0.21 → 2.0.23

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.
@@ -28,7 +28,9 @@ export function useColumnResize({ columnSizingOverrides, setColumnSizingOverride
28
28
  // Measure the actual rendered width from the DOM. With table-layout: auto,
29
29
  // the browser may have auto-sized the column wider than the config values.
30
30
  // The resize handle is a direct child of <th>, so parentElement is the header cell.
31
- const thEl = e.currentTarget.parentElement;
31
+ // Use closest('th') instead of parentElement to handle frameworks (e.g. Fluent UI)
32
+ // that wrap header cell children in an internal <button> element.
33
+ const thEl = e.currentTarget.closest('th');
32
34
  const startWidth = thEl
33
35
  ? thEl.getBoundingClientRect().width
34
36
  : columnSizingOverridesRef.current[columnId]?.widthPx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alaarab/ogrid-react",
3
- "version": "2.0.21",
3
+ "version": "2.0.23",
4
4
  "description": "OGrid React – React hooks, headless components, and utilities for OGrid data grids.",
5
5
  "main": "dist/esm/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -36,7 +36,7 @@
36
36
  "node": ">=18"
37
37
  },
38
38
  "dependencies": {
39
- "@alaarab/ogrid-core": "2.0.21"
39
+ "@alaarab/ogrid-core": "2.0.23"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@tanstack/react-virtual": "^3.0.0",