@popsure/dirty-swan 0.41.10 → 0.41.11
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { b as __awaiter, c as __generator, _ as __assign } from '../../tslib.es6-5bc94358.js';
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import { c as classNames } from '../../index-6ea95111.js';
|
|
4
|
-
import require$$0__default, { useState, useRef, useCallback, useEffect, Fragment } from 'react';
|
|
4
|
+
import require$$0__default, { useState, useRef, useCallback, useEffect, useLayoutEffect, Fragment } from 'react';
|
|
5
5
|
import { c as commonjsGlobal } from '../../_commonjsHelpers-e7f67fd8.js';
|
|
6
6
|
import Chevron from './components/Chevron.js';
|
|
7
7
|
import Row from './components/Row/index.js';
|
|
@@ -1577,6 +1577,15 @@ var useComparisonTable = function () {
|
|
|
1577
1577
|
(_b = observerRef.current) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
1578
1578
|
};
|
|
1579
1579
|
}, []);
|
|
1580
|
+
useLayoutEffect(function () {
|
|
1581
|
+
var resetHeaderWidth = function () {
|
|
1582
|
+
if (headerRef.current) {
|
|
1583
|
+
setHeaderWidth(headerRef.current.clientWidth);
|
|
1584
|
+
}
|
|
1585
|
+
};
|
|
1586
|
+
window.addEventListener('resize', resetHeaderWidth);
|
|
1587
|
+
return function () { return window.removeEventListener('resize', resetHeaderWidth); };
|
|
1588
|
+
}, []);
|
|
1580
1589
|
var handleTableScroll = function () {
|
|
1581
1590
|
if (!headerRef.current) {
|
|
1582
1591
|
return;
|