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 Harrin15mo ago
where in the html are you looking for attributes
daerentis
daerentis15mo 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 Harrin15mo ago
please open an issue with a reproduction repository on github
daerentis
daerentis15mo ago
Ok, i will. Thank you
Dan Harrin
Dan Harrin15mo ago
thanks