willba-component-library 0.4.10 → 0.4.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/README.md +1 -1
- package/lib/embed.esm.js +2 -2
- package/lib/embed.esm.js.map +1 -1
- package/lib/embed.umd.js +2 -2
- package/lib/embed.umd.js.map +1 -1
- package/lib/index.esm.js +12 -0
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +12 -0
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.esm.js
CHANGED
|
@@ -6872,6 +6872,18 @@ var useFilterActions = function (_a) {
|
|
|
6872
6872
|
Pages.EVENTS;
|
|
6873
6873
|
setSelectedPath(currentPath);
|
|
6874
6874
|
}, [tabs]);
|
|
6875
|
+
// Clear loading state when page is restored from bfcache — react state
|
|
6876
|
+
// is preserved on back/forward navigation, otherwise SEARCH stays disabled
|
|
6877
|
+
useEffect(function () {
|
|
6878
|
+
if (typeof window === 'undefined')
|
|
6879
|
+
return;
|
|
6880
|
+
var handlePageShow = function (event) {
|
|
6881
|
+
if (event.persisted)
|
|
6882
|
+
setInnerLoading(false);
|
|
6883
|
+
};
|
|
6884
|
+
window.addEventListener('pageshow', handlePageShow);
|
|
6885
|
+
return function () { return window.removeEventListener('pageshow', handlePageShow); };
|
|
6886
|
+
}, [setInnerLoading]);
|
|
6875
6887
|
var updateGuestsCount = function (id, newCount) {
|
|
6876
6888
|
setAgeCategoryCounts(function (prev) {
|
|
6877
6889
|
var _a;
|