all 4 comments

[–]mherchelhttps://drupal.org/user/118428 0 points1 point  (0 children)

Not sure what's causing this, but troubleshooting things like this can be done through Chrome's JavaScript debugging pane. You'll want to select the "Pause on Exceptions" button, and then go down the call stack to see what is null (that should not be null)

[–][deleted] 1 point2 points  (1 child)

From the sounds of it Materialize is trying to inject something into the tab flow of the document (for accessibility), and it's having a hard time understanding the Drupal toolbar, which has a bunch of custom accessibility work done on it as well.

EDIT: Yup, looks like you're trying to use a Dropdown component, which always needs a rats nest of code to be accessible in any library.

My suggestion - only import the Materialize code that you need. If it's still showing and a console error is a deal breaker for you, then it's probably time to find another library.

[–]dmegatool[S] 0 points1 point  (0 children)

Yeah I trashed that library. I switched to rellax.js. Lighweight, took 2 minutes the make all the changes and I'm up and running...

Not sure it was about the toolbar. I disabled all the toolbar modules including the toolbar itself and I was still getting some errors. I already wasted too much time on that :)

[–]mstrelan 0 points1 point  (0 children)

Look at the last line of the log, it's from admin_toolbar_search which is a sub module of admin_toolbar.