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.js CHANGED
@@ -6988,9 +6988,10 @@ var useFilterRefs = function () {
6988
6988
  };
6989
6989
  };
6990
6990
 
6991
+ var useIsomorphicLayoutEffect$1 = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;
6991
6992
  var usePanelPosition = function (_a) {
6992
6993
  var selectedFilter = _a.selectedFilter, panelRef = _a.panelRef, filtersRef = _a.filtersRef, buttonRefs = _a.buttonRefs;
6993
- React.useLayoutEffect(function () {
6994
+ useIsomorphicLayoutEffect$1(function () {
6994
6995
  var panel = panelRef.current;
6995
6996
  var filters = filtersRef.current;
6996
6997
  if (!panel || !filters)