laravel-admin
laravel-admin copied to clipboard
Spec selector overwrites header
- Laravel Version: 9.2
- PHP Version: 8.0.2
- Laravel-admin: 1.8
Description:
When Spec Selector ist added to a grid, the grid's header is overwritten. The footer continues to work as expected.
Steps To Reproduce:
- add header
- add spec selector
bump
This is how spec selector
is implemented.
public function selector(\Closure $closure)
{
$this->selector = new Selector();
call_user_func($closure, $this->selector);
$this->header(function () {
return $this->renderSelector();
});
return $this;
}
I saw that, and imho the problem is, that header is overwritten, whilst logically it should be amended.
Bump
Bump