From 44e9701160e6066484a40ac1eb690358b339d8d8 Mon Sep 17 00:00:00 2001 From: Lee Rowlands Date: Tue, 12 Jul 2022 08:07:46 +1000 Subject: [PATCH] Issue #2588013 by sumthief, aneek, tic2000, droplet, nod_, GuyPaddock, arunkumark, Manjit.Singh, anil280988, Wim Leers, larowlan, Lendude: causes unwanted whitespace (cherry picked from commit 365452be9e1eb89c4df5b84a85fb040eac55dbc3) --- core/modules/file/src/Element/ManagedFile.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/modules/file/src/Element/ManagedFile.php b/core/modules/file/src/Element/ManagedFile.php index e198f353dc8..8672aba730b 100644 --- a/core/modules/file/src/Element/ManagedFile.php +++ b/core/modules/file/src/Element/ManagedFile.php @@ -194,10 +194,6 @@ class ManagedFile extends FormElement { 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'] .= ''; - } $status_messages = ['#type' => 'status_messages']; $form['#prefix'] .= $renderer->renderRoot($status_messages);