From 57438c645fbb729fc174f434cfecf21b4684beb8 Mon Sep 17 00:00:00 2001 From: boherm Date: Mon, 1 Jul 2024 15:40:57 +0200 Subject: [PATCH] fix: listener for qtyInput in product page --- src/js/product.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/js/product.ts b/src/js/product.ts index 502349e1b..104f6f875 100644 --- a/src/js/product.ts +++ b/src/js/product.ts @@ -53,9 +53,7 @@ export default () => { }; // Attach event listener for input changes - quantityInput.addEventListener('input', triggerEmit); - quantityInput.addEventListener('keyup', triggerEmit); - quantityInput.addEventListener('keydown', triggerEmit); + quantityInput.addEventListener('change', triggerEmit); // Attach event listener for increment / decrement button click incrementButton.addEventListener('click', triggerEmit);