From e6f780d38659bd22ea5807d5ecf5263c71f4527c Mon Sep 17 00:00:00 2001 From: amansinghbais Date: Mon, 6 Jan 2025 10:49:18 +0530 Subject: [PATCH] Improved: scrolling to the first element on removing the last item (#567) --- src/views/HardCountDetail.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/HardCountDetail.vue b/src/views/HardCountDetail.vue index d832e2f7..0a6803ee 100644 --- a/src/views/HardCountDetail.vue +++ b/src/views/HardCountDetail.vue @@ -354,6 +354,7 @@ function removeCountItem(current: any) { store.dispatch("count/updateCycleCountItems", updatedItems); store.dispatch("product/currentProduct", updatedProduct ? updatedProduct : {}) + if(updatedProduct) scrollToProduct(updatedProduct); } async function scanProduct() {