On the latest version of nova the field doesn't seem to work properly.
I tried different types, but all seem to give the same errors:
It only affects the adding of a new color, the detail field and edit field work fine.
For now the workaround seems to just give the field a default value:
On the latest version of nova the field doesn't seem to work properly. I tried different types, but all seem to give the same errors:
It only affects the adding of a new color, the detail field and edit field work fine. For now the workaround seems to just give the field a default value:
Color::make('Color')->default(function () { return '#fff'; }),
TypeError: Cannot read property 'h' of undefined
TypeError: Cannot read property 'hex' of undefined
Nova 3.29.0 PHP 8