@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.
- package/dist/cjs/salla-add-product-button_40.cjs.entry.js +1 -1
- package/dist/cjs/salla-add-product-button_40.cjs.entry.js.map +1 -1
- package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +1 -1
- package/dist/collection/components/salla-quantity-input/salla-quantity-input.js.map +1 -1
- package/dist/components/salla-quantity-input.js +1 -1
- package/dist/components/salla-quantity-input.js.map +1 -1
- package/dist/esm/salla-add-product-button_40.entry.js +1 -1
- package/dist/esm/salla-add-product-button_40.entry.js.map +1 -1
- package/dist/esm-es5/salla-add-product-button_40.entry.js.map +1 -1
- package/dist/twilight/p-3544bca0.entry.js.map +1 -1
- package/dist/twilight/p-3ae8f976.system.entry.js.map +1 -1
- package/package.json +5 -5
|
@@ -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
|
|
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)) {
|