@linzjs/step-ag-grid 32.7.0 → 32.7.1

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.
@@ -61630,19 +61630,22 @@ const Grid = ({
61630
61630
  prevLoading.current = newLoading;
61631
61631
  }, [params.loading, rowData, showNoRowsOverlay]);
61632
61632
  const startDragYRef = React13.useRef(null);
61633
+ const getGridRoot = React13.useCallback(() => gridDivRef.current ?? document, []);
61633
61634
  const clearHighlightRowClasses = React13.useCallback(() => {
61634
- document.querySelectorAll(`.ag-row-highlight-above`)?.forEach((el) => {
61635
+ const gridRoot = getGridRoot();
61636
+ gridRoot.querySelectorAll(`.ag-row-highlight-above`)?.forEach((el) => {
61635
61637
  el.classList.remove("ag-row-highlight-above");
61636
61638
  });
61637
- document.querySelectorAll(`.ag-row-highlight-below`)?.forEach((el) => {
61639
+ gridRoot.querySelectorAll(`.ag-row-highlight-below`)?.forEach((el) => {
61638
61640
  el.classList.remove("ag-row-highlight-below");
61639
61641
  });
61640
- }, []);
61642
+ }, [getGridRoot]);
61641
61643
  const clearDragRowClasses = React13.useCallback(() => {
61642
- document.querySelectorAll(`.ag-row-dragging`)?.forEach((el) => {
61644
+ const gridRoot = getGridRoot();
61645
+ gridRoot.querySelectorAll(`.ag-row-dragging`)?.forEach((el) => {
61643
61646
  el.classList.remove("ag-row-dragging");
61644
61647
  });
61645
- }, []);
61648
+ }, [getGridRoot]);
61646
61649
  const gridElementRef = React13.useRef(void 0);
61647
61650
  const multiDragAppliedRef = React13.useRef(false);
61648
61651
  const multiDragCountRef = React13.useRef(0);