kirby-color icon indicating copy to clipboard operation
kirby-color copied to clipboard

Error when color is blank/deleted/unset: undefined is not an object (evaluating 'this.colors.rgba')

Open ericpedia opened this issue 2 years ago • 0 comments

I love the plugin and have moved from the other Colors plugin to this because of the UI and presets.

I'm having an issue in the Panel: when the color is set to a blank string, I get the error undefined is not an object (evaluating 'this.colors.rgba') and the field is not displayed. In my use, the color is optional, so it will sometimes be blank. (I don't want it to be set to a default color, I just want it to be blank.)

I can't find where the error is coming from, but if you can point me in the right direction I'd be happy to investigate it further. If it is relevant, I'm using this in a Structure field.

image

ericpedia avatar Apr 04 '22 10:04 ericpedia