Skip to content

Commit e535ddc

Browse files
ENGCOM-5175: Issue fix #23030: Swatch change Image does not slide to first Image #23033
- Merge Pull Request #23033 from cedcommerce/magento2:issue-fix-23030 - Merged commits: 1. 2770945
2 parents 15100ac + 2770945 commit e535ddc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Swatches/view/frontend/web/js/swatch-renderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1254,7 +1254,7 @@ define([
12541254
dataMergeStrategy: this.options.gallerySwitchStrategy
12551255
});
12561256
}
1257-
1257+
gallery.first();
12581258
} else if (justAnImage && justAnImage.img) {
12591259
context.find('.product-image-photo').attr('src', justAnImage.img);
12601260
}

0 commit comments

Comments
 (0)