diff --git a/core/modules/file/src/Element/ManagedFile.php b/core/modules/file/src/Element/ManagedFile.php index 91abef5..2084405 100644 --- a/core/modules/file/src/Element/ManagedFile.php +++ b/core/modules/file/src/Element/ManagedFile.php @@ -185,6 +185,7 @@ public static function processManagedFile(&$element, FormStateInterface $form_st '#value' => $element['#multiple'] ? t('Remove selected') : t('Remove'), '#validate' => [], '#submit' => ['file_managed_file_submit'], + '#suppress_form_level_submit' => TRUE, '#limit_validation_errors' => [$element['#parents']], '#ajax' => $ajax_settings, '#weight' => 1,