-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes for product tabbing issue #21079
Fixes for product tabbing issue #21079
Conversation
Prakash seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. |
Hi @prakash2jcommerce. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
lib/web/mage/tabs.js
Outdated
@@ -71,6 +71,9 @@ define([ | |||
anchorId = anchor.replace('#', ''); | |||
|
|||
if (anchor && isValid) { | |||
if(anchorId == 'review-form'){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @prakash2jcommerce. Thanks for collaboration.
First of all, according to our standarts we should use ===
instead of ==
.
Also, for support flexibility, we should avoid hardcode tab id (review-form
)
@magento-engcom-team give me 2.3-develop instance |
Hi @VladimirZaets. Thank you for your request. I'm working on Magento 2.3-develop instance for you |
Hi @VladimirZaets, here is your Magento instance. |
@magento-engcom-team give me 2.2-develop instance |
Hi @VladimirZaets. Thank you for your request. I'm working on Magento 2.2-develop instance for you |
Hi @VladimirZaets, here is your Magento instance. |
lib/web/mage/tabs.js
Outdated
@@ -71,6 +71,9 @@ define([ | |||
anchorId = anchor.replace('#', ''); | |||
|
|||
if (anchor && isValid) { | |||
if(anchorId == 'review-form'){ | |||
anchorId = anchorId.replace('-form', 's'); | |||
} | |||
$.each(self.contents, function (i) { | |||
if ($(this).attr('id') === anchorId) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @prakash2jcommerce, for better fix simply replace if
condition in each
with:
...
if ($(this).attr('id') === anchorId || $(this).find('#' + anchorId).length) {
...
and remove your fix.
Yes I have applied fixes in same file please check it further.. |
@prakash2jcommerce thank you for contributing. Please accept Community Contributors team invitation here to gain extended permissions for this repository. |
✔️ QA Passed |
Hi @prakash2jcommerce, thank you for your contribution! |
Description (*)
Fixed Issues (if relevant)
Manual testing scenarios (*)
Contribution checklist (*)