willba-component-library 0.1.29 → 0.1.31

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.umd.js CHANGED
@@ -8005,6 +8005,10 @@
8005
8005
 
8006
8006
  function GuestCount(_a) {
8007
8007
  var label = _a.label, sortOrder = _a.sortOrder, id = _a.id, updateGuestsCount = _a.updateGuestsCount, count = _a.count, minVal = _a.minVal;
8008
+ React__default.useEffect(function () {
8009
+ if (minVal)
8010
+ updateGuestsCount("guests-".concat(id), minVal);
8011
+ }, []);
8008
8012
  var handleDecrement = function () {
8009
8013
  if (count > minVal) {
8010
8014
  updateGuestsCount("guests-".concat(id), count - 1);
@@ -8176,12 +8180,9 @@
8176
8180
  }
8177
8181
  finally { if (e_2) throw e_2.error; }
8178
8182
  }
8179
- console.log(currentSearchParams.toString(), updatedParams.toString());
8180
- // Get the current URL without the query string
8181
8183
  var baseUrl = window.location.origin + window.location.pathname;
8182
- // Construct the updated URL with the modified query parameters
8183
8184
  var updatedUrl = "".concat(baseUrl, "?").concat(updatedParams.toString());
8184
- // Replace the current URL with the updated URL in the browser's history
8185
+ handleSelectedFilter(false);
8185
8186
  return (window.location.href = updatedUrl);
8186
8187
  }
8187
8188
  else {
@@ -8201,6 +8202,7 @@
8201
8202
  }
8202
8203
  finally { if (e_3) throw e_3.error; }
8203
8204
  }
8205
+ handleSelectedFilter(false);
8204
8206
  return (window.location.href = "".concat(redirectUrl, "/").concat(selectedPath).concat(querySearchParams ? "?".concat(querySearchParams.toString()) : ''));
8205
8207
  }
8206
8208
  };