Skip to content

Commit 0e02b40

Browse files
authored
Product detail did not scroll to review tab after click on 'Reviews' anchor link
1 parent d574dce commit 0e02b40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Review/view/frontend/web/js/process-reviews.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ define([
5454

5555
event.preventDefault();
5656
anchor = $(this).attr('href').replace(/^.*?(#|$)/, '');
57-
addReviewBlock = $('.block.review-add .block-content #' + anchor);
57+
addReviewBlock = $('#' + anchor);
5858

5959
if (addReviewBlock.length) {
6060
$('.product.data.items [data-role="content"]').each(function (index) { //eslint-disable-line

0 commit comments

Comments
 (0)