-
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
Uncaught TypeError: panel.addClass is not a function when Swatches are disabled #20843
Comments
Hi @VincentMarmiesse. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. @VincentMarmiesse do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
I can't reproduce it on vanilla Magento instance as I have to disable Swatches modules. |
Hi @engcom-backlog-nazar. Thank you for working on this issue.
|
✅ Confirmed by @engcom-backlog-nazar |
Hi @shikhamis11. Thank you for working on this issue.
|
✅ Confirmed by @shikhamis11 Issue Available: @shikhamis11, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
Working on this #mm19in |
@Anantkprajapati thank you for joining. Please accept team invitation here and self-assign the issue. |
Hi @Anantkprajapati. Thank you for working on this issue.
|
Reproduced on 2.3.x http://prntscr.com/mfxxox |
Hello "There is an error in console: Uncaught TypeError: panel.addClass is not a function" |
Reproduced on 2.3.1 when Magento_Swatches module is disabled. On the backend the "Save Attribute" button does not work.
|
What is the solution? |
Enable Swatches module then recompile and deploy.
|
Hi @VincentMarmiesse. Thank you for your report. The fix will be available with the upcoming 2.3.3 release. |
Preconditions (*)
2.PHP 7.2.14
Steps to reproduce (*)
country_of_manufacture
for example)Expected result (*)
Actual result (*)
Uncaught TypeError: panel.addClass is not a function
That's because when Swatches are disabled, the template
vendor/magento/module-catalog/view/adminhtml/templates/catalog/product/attribute/js.phtml
is loaded and has and error: it callsaddClass
function on a prototype Element. The same is done withremoveClass
function.The text was updated successfully, but these errors were encountered: