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