versoly / taos

A simple and small (600 bytes) library to help animate elements while scrolling using responsive Tailwind CSS JIT utility classes.
MIT License
229 stars 8 forks source link

e.className.includes is not a function #5

Closed cblavier closed 1 year ago

cblavier commented 1 year ago

Hey there, I have this error log on loading. The library is still working fine, but I don't like this red message in my console :)

Uncaught TypeError: e.className.includes is not a function
    at taos.js:77:29
    at Array.forEach (<anonymous>)
    at MutationObserver.observe.attributes (taos.js:76:15)

Error is visible here: https://staging.readable.fm/

Thanks for the wonderful lib 🙏

volkandkaya commented 1 year ago

Are you adding any elements after page load?

volkandkaya commented 1 year ago

Fixed with v1.0.3