@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.
package/dist/cjs/index.js CHANGED
@@ -13665,6 +13665,15 @@ var useComparisonTable = function () {
13665
13665
  (_b = observerRef.current) === null || _b === void 0 ? void 0 : _b.disconnect();
13666
13666
  };
13667
13667
  }, []);
13668
+ require$$0.useLayoutEffect(function () {
13669
+ var resetHeaderWidth = function () {
13670
+ if (headerRef.current) {
13671
+ setHeaderWidth(headerRef.current.clientWidth);
13672
+ }
13673
+ };
13674
+ window.addEventListener('resize', resetHeaderWidth);
13675
+ return function () { return window.removeEventListener('resize', resetHeaderWidth); };
13676
+ }, []);
13668
13677
  var handleTableScroll = function () {
13669
13678
  if (!headerRef.current) {
13670
13679
  return;