willba-component-library 0.4.11 → 0.4.12

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/lib/index.esm.js CHANGED
@@ -6968,9 +6968,10 @@ var useFilterRefs = function () {
6968
6968
  };
6969
6969
  };
6970
6970
 
6971
+ var useIsomorphicLayoutEffect$1 = typeof window !== 'undefined' ? useLayoutEffect : useEffect;
6971
6972
  var usePanelPosition = function (_a) {
6972
6973
  var selectedFilter = _a.selectedFilter, panelRef = _a.panelRef, filtersRef = _a.filtersRef, buttonRefs = _a.buttonRefs;
6973
- useLayoutEffect(function () {
6974
+ useIsomorphicLayoutEffect$1(function () {
6974
6975
  var panel = panelRef.current;
6975
6976
  var filters = filtersRef.current;
6976
6977
  if (!panel || !filters)