You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding a Color field type to an entry/section causes a javascript error to occur. This can interfere with other Javascript based functionality causes it to cease working.
The error generated is Uncaught TypeError: Craft.ColorPicker is not a constructor
It is traced back to this code being generated in the template <script type="text/javascript">new Craft.ColorPicker('fields-backgroundColor');</script>
Steps to reproduce
Create a field with type Color
Attach it to a section
Try to edit the section
View the web developer console to see the javascript error being thrown.
Additional info
Craft version: Craft CMS 3.0.0-beta.3
PHP version: 7.0.13
Database driver & version:
Plugins & versions:
The text was updated successfully, but these errors were encountered:
Description
Adding a Color field type to an entry/section causes a javascript error to occur. This can interfere with other Javascript based functionality causes it to cease working.
The error generated is
Uncaught TypeError: Craft.ColorPicker is not a constructor
It is traced back to this code being generated in the template
<script type="text/javascript">new Craft.ColorPicker('fields-backgroundColor');</script>
Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: