Починили работу курсора

This commit is contained in:
2025-11-16 19:52:27 +03:00
parent 9669459920
commit cd1a123dcd

View File

@@ -194,7 +194,7 @@ function renderCart() {
qtyInput.className = 'qty-input'; qtyInput.className = 'qty-input';
qtyInput.value = item.qty; qtyInput.value = item.qty;
qtyInput.min = 1; qtyInput.min = 1;
qtyInput.oninput = (e) => { qtyInput.onchange = (e) => {
const newQty = parseInt(e.target.value) || 1; const newQty = parseInt(e.target.value) || 1;
if (newQty <= 0) { if (newQty <= 0) {
removeFromCart(cartKey); removeFromCart(cartKey);