We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25780f6 commit a698a51Copy full SHA for a698a51
src/Html/Options/Plugins/Buttons.php
@@ -21,6 +21,8 @@ trait Buttons
21
*/
22
public function buttons(...$buttons): static
23
{
24
+ $this->attributes['buttons'] = [];
25
+
26
if (is_array($buttons[0])) {
27
$buttons = $buttons[0];
28
}
tests/BuilderOptionsPluginsTest.php
@@ -60,7 +60,7 @@ public function it_has_buttons_plugin()
60
Button::make('remove'),
61
]);
62
63
- $this->assertCount(3, $builder->getButtons());
+ $this->assertCount(1, $builder->getButtons());
64
65
66
/** @test */
0 commit comments