presseddigital / colorit

A slick color picker fieldtype plugin for the Craft CMS control panel
Other
21 stars 8 forks source link

Javascript Error when using ColorIt field in Globals #8

Closed richhayler closed 5 years ago

richhayler commented 5 years ago

Please reference https://github.com/craftcms/cms/issues/3452

I'm getting the following Javascript error in the control panel in the Globals section where I am using a ColorIt field.

[Error] TypeError: null is not an object (evaluating 'dom.palette.addEventListener') init (Colorit.js:187) constructor (Colorit.js:210) Global Code (global:1787)

samhibberd commented 5 years ago

Thanks for reporting, will take a look.

samhibberd commented 5 years ago

@richhayler I can't recreate this. Can you give me a little more browser info: https://www.whatsmybrowser.org/

richhayler commented 5 years ago

It’s happening in Safari on macOS 10.14, and Safari on iOS 12 (tested on iPad and iPhone).

richhayler commented 5 years ago

https://whatsmybrowser.org/b/BZU7PE5

samhibberd commented 5 years ago

Still nothing, do you have a staging version I can access?

richhayler commented 5 years ago

Yes, I will email the details through. Thank you.

samhibberd commented 5 years ago

Thanks, got it and worked it out. Not seen only the custom colour input used before, nice!

Will get a fix out tonight.

richhayler commented 5 years ago

I noticed this issue is also happening on entry pages where there is a ColorIt field and and asset field. In my last email to you the section I setup on the staging server has an entry setup like this where you can view the issue.

richhayler commented 5 years ago

Any update on the fix?

samhibberd commented 5 years ago

Fixed in 1.0.7

richhayler commented 5 years ago

Thank you