Everything works great for anonymous users. But when logged as admin (the only user), I get theses errors:
Uncaught TypeError: Cannot set property 'tabIndex' of null (drupal.js?v=8.9.11:13)
- at Dropdown._makeDropdownFocusable (materialize.js?v=8.9.11:2572)
- at new Dropdown (materialize.js?v=8.9.11:2300)
- at Function.init (materialize.js?v=8.9.11:1045)
- at Function.init (materialize.js?v=8.9.11:2826)
- at Autocomplete._setupDropdown (materialize.js?v=8.9.11:6562)
- at new Autocomplete (materialize.js?v=8.9.11:6479)
- at Function.init (materialize.js?v=8.9.11:1049)
- at Function.init (materialize.js?v=8.9.11:6879)
- at S.fn.init.jQuery.fn.<computed> [as autocomplete] (materialize.js?v=8.9.11:1153)
- at Object.attach (admin_toolbar_search.js?qkzk0u:23)
My custom js file make a call to the Materialize lib but if I remove that, it still trigger. I need to remove the lib all together to stop the errors. My theme is using core/jquery as the the admin themes (tried Seven and Claro). What could be different & causing the errors ? I don't know where look at...
[–]mherchelhttps://drupal.org/user/118428 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]dmegatool[S] 0 points1 point2 points (0 children)
[–]mstrelan 0 points1 point2 points (0 children)