@salla.sa/twilight-components 2.11.126 → 2.11.127

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.
@@ -22357,7 +22357,7 @@ const SallaQuantityInput = class {
22357
22357
  componentDidLoad() {
22358
22358
  this.didLoaded = true;
22359
22359
  this.textInput.addEventListener('input', (event) => salla.helpers.inputDigitsOnly(event.target));
22360
- // handle quantity update from cart if exceeded the max quantity if cartItemId is provided
22360
+ // handle quantity update from cart if exceeded the max quantity and cartItemId is provided
22361
22361
  this.cartItemId && salla.cart.event.onItemUpdatedFailed((data, itemId) => {
22362
22362
  var _a, _b, _c, _d;
22363
22363
  if (!((_d = (_c = (_b = (_a = data.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.error) === null || _c === void 0 ? void 0 : _c.fields) === null || _d === void 0 ? void 0 : _d.quantity)) {