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
parent
b51c20d22c
commit
5aad36da5d
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue