diff --git a/core/modules/file/src/Element/ManagedFile.php b/core/modules/file/src/Element/ManagedFile.php index e198f353dc8f8ee9c50d623d417fda8f5db78d98..8672aba730be7f9926b09240d226805c4c84d39b 100644 --- a/core/modules/file/src/Element/ManagedFile.php +++ b/core/modules/file/src/Element/ManagedFile.php @@ -194,10 +194,6 @@ public static function uploadAjaxCallback(&$form, FormStateInterface &$form_stat if (isset($form['#file_upload_delta']) && $current_file_count < $form['#file_upload_delta']) { $form[$current_file_count]['#attributes']['class'][] = 'ajax-new-content'; } - // Otherwise just add the new content class on a placeholder. - else { - $form['#suffix'] .= '<span class="ajax-new-content"></span>'; - } $status_messages = ['#type' => 'status_messages']; $form['#prefix'] .= $renderer->renderRoot($status_messages);