Skip to content

Commit

Permalink
Fixed: new item not getting auto selected automatically (#608)
Browse files Browse the repository at this point in the history
  • Loading branch information
amansinghbais committed Jan 20, 2025
1 parent 1dbf653 commit e51849c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/ProductItemList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ onMounted(() => {
**/
async function navigateToDetail(item: any) {
router.replace({ hash: isItemAlreadyAdded(item) ? `#${item.productId}-${item.importItemSeqId}` : `#${item.scannedId}` });
if(props.item.countTypeEnumId === "HARD_COUNT" && !isScrollingAnimationEnabled.value) {
if((props.item.countTypeEnumId === "HARD_COUNT" || props.item.scannedId) && !isScrollingAnimationEnabled.value) {
if(props.item.importItemSeqId === item.importItemSeqId) {
emitter.emit("handleProductClick", item)
}
Expand Down

0 comments on commit e51849c

Please sign in to comment.