feat(cart): prevent automatic variant replacement and handle selection errors

This commit is contained in:
2026-09-17 11:39:43 -03:00
parent 4923010afb
commit de10de2376
2 changed files with 56 additions and 2 deletions

View File

@@ -31,8 +31,9 @@
class="cart-item-variant-selector"
[variants]="variants()"
[selectedVariant]="selectedVariant()"
[autoSelectFirst]="false"
[compact]="true"
(selectedVariantChange)="onVariantChange($event)"
(selectionValuesChange)="onVariantChange($event.selectedVariant)"
/>
} @else {
<div class="d-grid cart-item-attributes">