Materialize CSS javascript compontents don't work with dash

I’m trying to use Materialize CSS to implement collapsible items in side navbar, but even though css styling works fine, None of the javascript components (dropdowns, collapsibles, etc;) work. I managed to get them to work outside of dash (with a single html file), and I’m using the same code in dash. I have placed .css and .js files in the assets folder. Does anyone know what this might be?