Skip to content

Commit 01d7f51

Browse files
author
Prakash
committed
Fixes for tabbing issue on product
1 parent 7fc0ff7 commit 01d7f51

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/web/mage/tabs.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,9 @@ define([
7070
isValid = $.mage.isValidSelector(anchor),
7171
anchorId = anchor.replace('#', '');
7272

73-
if (anchor && isValid) {
74-
if(anchorId == 'review-form'){
75-
anchorId = anchorId.replace('-form', 's');
76-
}
73+
if (anchor && isValid) {
7774
$.each(self.contents, function (i) {
78-
if ($(this).attr('id') === anchorId) {
75+
if ($(this).attr('id') === anchorId || $(this).find('#' + anchorId).length) {
7976
self.collapsibles.not(self.collapsibles.eq(i)).collapsible('forceDeactivate');
8077

8178
return false;

0 commit comments

Comments
 (0)