- Issue created by @robpowell
When given an entity reference with a cardinality greater than one and setting the default value via the field's config; the first value submitted in the entity reference is overriden to the default value.
Given you have a vocab Tag
with the following terms:
And a content type Article with an entity reference to Tag. Use the SHS field widget.
Bar 1
and Bar 2
Foo
and Bar 2
The issue appears to be related to having a default value set and the widget's javascript not correctly interpreting or handling that causing the first item to always revert back to the default value set for the field on the first save. If I remove the default, it works.
Drupal version: 10.2.3
SHS version: 2.0.0-dev
Active
2.0
Code