-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
Ajax loaded box collapse broken again on 2.4 #1857
Comments
Where i need to put this code |
Is the issue remains unsolved? |
All, As a workaround, add "jquery.arrive" JS to your project, https://raw.githubusercontent.com/uzairfarooq/arrive/master/minified/arrive.min.js then call "jQuery(document).arrive('div.box [data-widget]', (element) => { $(element).parents('.box').boxWidget(); });" after ajax request. |
If you add a complete box via a ajax call you need to init the boxWidget on the box to collapse it after insert. |
Issue type:
Environment:
Description:
The issue was already reported in #302 and fixed.
Here again, on 2.4, the box can not be collapsed if they are loaded in ajax.
A automated test should be added to prevent this kind of bug in the future.
Current possible workaround waiting the fix, using the arrive component:
The text was updated successfully, but these errors were encountered: