Skip to content

Commit

Permalink
Merge pull request #585 from amansinghbais/#567-removescroll
Browse files Browse the repository at this point in the history
Improved: scrolling to the first element on removing the last item (#567)
  • Loading branch information
ymaheshwari1 authored Jan 7, 2025
2 parents e637baf + e6f780d commit 91575f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/views/HardCountDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 91575f2

Please sign in to comment.