-
Notifications
You must be signed in to change notification settings - Fork 5k
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
MDL not applied to elements loaded through AJAX #1393
Comments
This is out of the scope of what MDL supplies. Please use StackOverflow for support in building your web sites. |
Ok, but thanks anyway! |
Not sure what you use to load your page, but you should be able to set a callback and manually upgrade the elements in the new page. |
I finally had the time to look through the source and I found a solution: call |
Thank you for finding this. 🥇 for you. |
When using
$('#element').load('some-page.html')
, MDL events are not applied to any MDL elements on the requested page (style works fine, though). A simple fix would be http://stackoverflow.com/a/23247146, simply attach the event to the body and test for the class, right?The text was updated successfully, but these errors were encountered: