Починили работу курсора
This commit is contained in:
@@ -194,7 +194,7 @@ function renderCart() {
|
||||
qtyInput.className = 'qty-input';
|
||||
qtyInput.value = item.qty;
|
||||
qtyInput.min = 1;
|
||||
qtyInput.oninput = (e) => {
|
||||
qtyInput.onchange = (e) => {
|
||||
const newQty = parseInt(e.target.value) || 1;
|
||||
if (newQty <= 0) {
|
||||
removeFromCart(cartKey);
|
||||
|
||||
Reference in New Issue
Block a user