Commit 7a45ffbd authored by slashrsm's avatar slashrsm
Browse files

by slashrsm: Chase entity browser.

parent 2837e782
...@@ -168,7 +168,7 @@ class DropzoneJsEbWidget extends WidgetBase { ...@@ -168,7 +168,7 @@ class DropzoneJsEbWidget extends WidgetBase {
} }
if (!empty(array_filter($files))) { if (!empty(array_filter($files))) {
$this->selectEntities($files); $this->selectEntities($files, $form_state);
$this->clearFormValues($element, $form_state); $this->clearFormValues($element, $form_state);
} }
} }
......
...@@ -126,7 +126,7 @@ class MediaEntityDropzoneJsEbWidget extends DropzoneJsEbWidget { ...@@ -126,7 +126,7 @@ class MediaEntityDropzoneJsEbWidget extends DropzoneJsEbWidget {
} }
if (!empty(array_filter($media_entities))) { if (!empty(array_filter($media_entities))) {
$this->selectEntities($media_entities); $this->selectEntities($media_entities, $form_state);
$this->clearFormValues($element, $form_state); $this->clearFormValues($element, $form_state);
} }
} }
......
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