-
Notifications
You must be signed in to change notification settings - Fork 9.4k
accordion ui widget name conflict #4334
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
Comments
@guz-anton @vkorotun can you look into it? |
@shabith is this issue still actual? |
@veloraven yes! the issue still exists. |
@shabith I came across your post looking for a way to use and extend jQuery UI accordion in a custom Magento 2 theme. I fixed it avoiding the collision between mage.accordion and jQuery UI accordion (accordion is mapped to mage.accordion in vendor/magento/module-theme/view/frontend/requirejs-config.js) This solution is based upon Magento devdocs (http://devdocs.magento.com/guides/v2.1/javascript-dev-guide/javascript/js_practice.html) and the jQuery UI widget documentation ( http://learn.jquery.com/jquery-ui/widget-factory/extending-widgets/ ).
|
Hello @shabith, thank you for reporting this issue, however this is not the one widget name that conflicts with jQuery UI. To fix the described issue we need to change the entire architecture of Javascript widgets, and unfortunately we don't have plans to change it in nearest future. So, please follow the suggestions, given to you above to fix your issue, and I have to close this bug report. |
Implemented Stories: - MAGETWO-55809: Eliminate @escapeNotVerified in Module Backend
Steps to reproduce
Expected result
Actual result
In detail
both plugins has the same name but different name space (
$.mage.accordion
and$.ui.accordion
)So when we try to implement an accordion it will create a naming conflict.
Solution
At the moment only possible way to avoid this conflict is by using
$.ui.bridge
The text was updated successfully, but these errors were encountered: