- Issue created by @joachim
In π List key|label entry field is textarea, which doesn't give guidance towards the expected input Fixed , the form for options field settings was changed, and there is an outer form element with no #type:
$element['allowed_values'] = [
'#element_validate' => [[static::class, 'validateAllowedValues']],
'#field_has_data' => $has_data,
'#allowed_values' => $allowed_values,
'#required' => TRUE,
'#prefix' => '<div id="' . $wrapper_id . '">',
'#suffix' => '</div>',
'#access' => empty($allowed_values_function),
'help_text' => ['#markup' => $this->allowedValuesDescription()],
];
This causes problems.
For example, a 3rd party module can't set #states on it, because the states system expects to find a #type on a form element.