- First commit to issue fork.
- Status changed to Closed: works as designed
over 1 year ago 5:47pm 31 July 2023 - 🇬🇧United Kingdom nlisgo
It is my understanding that the expected behaviour is different from what is described in the issue summary.
When you have a multi value field and you choose a default value then the first entry for the default value is for the first item and you can create subsequent default values:
The html field is broken because you cannot supply multiple values for it.
The behaviour in #14 is also expected beahviour. When you have a multi value you field then empty fields are ignored so you would find that if you returned to the interface for the default value that the second empty entry has been removed.
The bug I am experiencing is that I can not seem to set a second (or third and so on) default value for formatted text fields.
I am going to close this ticket as working as expected and open another issue to document the bug that I am experiencing which triggers the following error:
Error: Cannot use object of type Drupal\Core\StringTranslation\TranslatableMarkup as array in Drupal\text\Plugin\Field\FieldType\TextFieldItemList->defaultValuesFormValidate() (line 24 of /data/app/core/modules/text/src/Plugin/Field/FieldType/TextFieldItemList.php).