creativetimofficial/material-dashboard

[Bug]: referenceButtons are undefined

AmasiaNalbandian opened this issue ยท 2 comments

Sometimes reference buttons is undefined, in which case we get errors in the console. We should add an optional chain for this logic.
see here:

if (referenceButtons.classList.contains('active') && referenceButtons.getAttribute('data-class') === 'bg-transparent') {

See issue related here: Seneca-CDOT/telescope#2691

Please feel free to assign this to me - I'd be happy to add it in,

@AmasiaNalbandian this issue was automatically closed because it did not follow the bellow rules:

IMPORTANT: Please use the following link to create a new issue:

https://www.creative-tim.com/new-issue/material-dashboard

**If your issue was not created using the app above, it will be closed immediately.**



Love Creative Tim? Do you need Angular, React, Vuejs or HTML? You can visit:
๐Ÿ‘‰  https://www.creative-tim.com/bundles
๐Ÿ‘‰  https://www.creative-tim.com