diff --git a/core/modules/file/src/Element/ManagedFile.php b/core/modules/file/src/Element/ManagedFile.php index 40d0c31..91abef5 100644 --- a/core/modules/file/src/Element/ManagedFile.php +++ b/core/modules/file/src/Element/ManagedFile.php @@ -168,6 +168,7 @@ public static function processManagedFile(&$element, FormStateInterface $form_st '#attributes' => ['class' => ['js-hide']], '#validate' => [], '#submit' => ['file_managed_file_submit'], + '#suppress_form_level_submit' => TRUE, '#limit_validation_errors' => [$element['#parents']], '#ajax' => $ajax_settings, '#weight' => -5,