Commit c68ff60c authored by chr.fritsch's avatar chr.fritsch Committed by Primsi
Browse files

Issue #2830658 by chr.fritsch: IEF widget in EB Multi-Step selection breaks

parent 11ac8b5d
......@@ -171,4 +171,14 @@ class InlineEntityFormMediaWidget extends MediaEntityDropzoneJsEbWidget {
$this->clearFormValues($element, $form_state);
* {@inheritdoc}
protected function clearFormValues(array &$element, FormStateInterface $form_state) {
parent::clearFormValues($element, $form_state);
// Clear uploaded_entities to get a clean form in multi-step selection.
$form_state->set('uploaded_entities', []);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment