- Issue created by @dieterholvoet
- Merge request !128Remove the empty label from the Tagify select widget → (Merged) created by dieterholvoet
- 🇪🇸Spain gxleano Cáceres
Thank you for reporting this, Dieter. However, this issue requires further attention.
If we remove the empty label, non-mandatory fields will always default to the first item in the entity reference field, which is a bug we need to resolve.
Current Behavior:
The non-mandatory field automatically selects the first item from the entity reference field.Expected Behavior:
The non-mandatory field should remain empty when no value is selected. - 🇧🇪Belgium dieterholvoet Brussels
The non-mandatory field automatically selects the first item from the entity reference field.
For the record, this only happens when the field accepts 1 value, not multiple values. I tested your changes, but it doesn't work as it should yet. When loading the form, the first result is not selected, but when submitting the form the following validation error is displayed:
This value should be of the correct primitive type.
This happens on a single cardinality, optional entity reference field with the Tagify Select widget.
- 🇪🇸Spain gxleano Cáceres
Thanks for the review Dieter.
Now it should works as expected.