Починили работу курсора
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user