extraAttributes on Bulk Actions not working correctly?

I'm trying to add extraAttributes to a Bulk Action but it is not rendered. It is working on my Single Actions though
->bulkActions([
Tables\Actions\BulkAction::make('groupCalculation')
->icon('heroicon-o-calculator')
->action(function (Collection $records) {
// Doing something...
})
->extraAttributes(['foobar' => 'bar'])
])
->bulkActions([
Tables\Actions\BulkAction::make('groupCalculation')
->icon('heroicon-o-calculator')
->action(function (Collection $records) {
// Doing something...
})
->extraAttributes(['foobar' => 'bar'])
])
Is it missing in the view or is it me using it incorrectly?
5 Replies
Dan Harrin
Dan Harrin2y ago
where in the html are you looking for attributes
daerentis
daerentisOP2y ago
I am trying to close the bulk action dropdown item when the action() is done. Thought on adding a x-on:click event on the button. Looking for attributes in the <button> of the bulk action
Dan Harrin
Dan Harrin2y ago
please open an issue with a reproduction repository on github
daerentis
daerentisOP2y ago
Ok, i will. Thank you
Dan Harrin
Dan Harrin2y ago
thanks
Want results from more Discord servers?
Add your server