@tanstack/react-table 8.21.2 → 8.21.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.
|
@@ -1243,6 +1243,10 @@
|
|
|
1243
1243
|
}
|
|
1244
1244
|
};
|
|
1245
1245
|
|
|
1246
|
+
function safelyAccessDocument(_document) {
|
|
1247
|
+
return _document || (typeof document !== 'undefined' ? document : null);
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1246
1250
|
//
|
|
1247
1251
|
|
|
1248
1252
|
//
|
|
@@ -1382,7 +1386,7 @@
|
|
|
1382
1386
|
columnSizingStart: []
|
|
1383
1387
|
}));
|
|
1384
1388
|
};
|
|
1385
|
-
const contextDocument = _contextDocument
|
|
1389
|
+
const contextDocument = safelyAccessDocument(_contextDocument);
|
|
1386
1390
|
const mouseEvents = {
|
|
1387
1391
|
moveHandler: e => onMove(e.clientX),
|
|
1388
1392
|
upHandler: e => {
|