diff --git a/src/Forms/GridField/GridFieldClearAllButton.php b/src/Forms/GridField/GridFieldClearAllButton.php index df8e5d2..54f1557 100644 --- a/src/Forms/GridField/GridFieldClearAllButton.php +++ b/src/Forms/GridField/GridFieldClearAllButton.php @@ -45,7 +45,7 @@ public function getHTMLFragments($gridField) ->setForm($gridField->getForm()); return [ - $this->targetFragment => '

' . $button->Field() . '

' + $this->targetFragment => $button->Field() ]; } diff --git a/tests/Forms/GridField/GridFieldClearAllButtonTest.php b/tests/Forms/GridField/GridFieldClearAllButtonTest.php index 7daadca..ddf2421 100644 --- a/tests/Forms/GridField/GridFieldClearAllButtonTest.php +++ b/tests/Forms/GridField/GridFieldClearAllButtonTest.php @@ -70,7 +70,6 @@ public function testGetHtmlFragments() $this->assertContains('Clear all', $fragments['before']); $this->assertContains('clear-all-logs', $fragments['before']); $this->assertContains('font-icon-trash-bin action_clear', $fragments['before']); - $this->assertContains('

', $fragments['before']); } /**