shakrmedia / petal

A modern, light CSS UI framework by Shakr
https://shakrmedia.github.io/petal
MIT License
128 stars 9 forks source link

JS Error on click handler #28

Closed markdreyer closed 3 years ago

markdreyer commented 3 years ago

I'm getting an error every time I click with the js installed via npm.

petal.min.js:formatted:1 Uncaught TypeError: Cannot read property 'contains' of undefined
    at HTMLDocument.<anonymous> (petal.min.js:formatted:1)
    at HTMLDocument.<anonymous> (petal.min.js:formatted:1)
(anonymous) @ petal.min.js:formatted:1
(anonymous) @ petal.min.js:formatted:1
petal.min.js:formatted:1 Uncaught TypeError: Cannot read property 'contains' of undefined
    at HTMLDocument.<anonymous> (petal.min.js:formatted:1)

Looks like it could be the global click handler. This event is coming from the html tag

image