Verified Commit 5aad36da authored by Lee Rowlands's avatar Lee Rowlands
Browse files

Issue #2588013 by sumthief, aneek, tic2000, droplet, nod_, GuyPaddock,...

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 365452be)
parent b51c20d2
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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);