Issue #2588013 by sumthief, aneek, tic2000, droplet, nod_, GuyPaddock, arunkumark, Manjit.Singh, anil280988, Wim Leers, larowlan, Lendude: <span class="ajax-new-content" style="display:inline-block;"> causes unwanted whitespace

(cherry picked from commit 365452be9e)
merge-requests/2357/merge
Lee Rowlands 2022-07-12 08:07:46 +10:00
parent b51c20d22c
commit 5aad36da5d
No known key found for this signature in database
GPG Key ID: 2B829A3DF9204DC4
1 changed files with 0 additions and 4 deletions

View File

@ -194,10 +194,6 @@ class ManagedFile extends FormElement {
if (isset($form['#file_upload_delta']) && $current_file_count < $form['#file_upload_delta']) { if (isset($form['#file_upload_delta']) && $current_file_count < $form['#file_upload_delta']) {
$form[$current_file_count]['#attributes']['class'][] = 'ajax-new-content'; $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']; $status_messages = ['#type' => 'status_messages'];
$form['#prefix'] .= $renderer->renderRoot($status_messages); $form['#prefix'] .= $renderer->renderRoot($status_messages);