Is anybody else having major problems with Materialize? I recently upgraded my packages and now my app is all messed up. I think there were some breaking changes in the most recent version of Materialize.
For example, when I use a modal the modal will appear, but the screen behind it is completely black and the modal overlay won’t go away when I’ve exited out of the modal. Developer tools shows that 10 modal overlays were created when the modal was opened, but only one is removed when I close the modal. All I have done is initialize the modal in the onRendered callback.
@ahref thanks for the response! I’ve been moving this weekend and haven’t had much time to respond. I’m still a bit of a noob, so I’m not sure how to check if a package’s JavaScript has been loaded more than once… Can you give me a little more detailed instruction on how to do this? Thanks!
I simply had materialize added via the package and used the modals as directed in the docs. I had the modal in a template with a link (class of modal-trigger) to open it. I then initialized the modal in the template onRendered callback. In addition to the modal problems, I was also getting weird caret icons above my select boxes. It was totally random too… Some select boxes would have a little caret icon and others wouldn’t. Once I reverted back it all went away.