Broken swatch display in widget when not providing swatches

Created on 16 December 2023, 11 months ago

Problem/Motivation

When not providing any swatches in the field settings, a broken swatch is displayed in the widget without a proper color value. The expected behavior would be to not display any swatches if the swatches array is empty. This problem is caused by the multi-value field for the swatches, since it will deliver an empty value.

Steps to reproduce

1. Add Coloris Color field to some content.
2. Do not add any swatches in the field settings.
3. Go to edit form and check the widget. It displays a broken swatch without a color value. See screenshot.

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇩🇪Germany simonbaese Berlin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024