You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// document.addEventListener('DOMContentLoaded', function() {
var elems = document.querySelectorAll('.carousel');
var instances = M.Carousel.init(elems, {fullWidth: false, indicators: true});
// });
You need to remove document.addEventListener('DOMContentLoaded', function() {, otherwisee DOM elementts only bind to event listeners when page is fully reloaded again
Expected Behavior
I want to go to different site page and coma back see it working again.
Current Behavior
I need to reload the page to mount to event lisstener again. It breeaks somewhere between.
Here is the code:
The text was updated successfully, but these errors were encountered: