double tooltips, workaround not working.

I have an action and it is showing double tooltips (See screenshot). I successfully removed the browser default tooltip by adding the ->label('') modifier. However, after doing this, the confirmation modal no longer has any content and is just confirm/cancel buttons (see other screenshot).
public function deleteAction(): Action
{
return Action::make('delete')
->label('')
->size('lg')
->iconButton()
->icon('heroicon-o-trash')
->tooltip('Delete statement')
->requiresConfirmation()
->action(fn (array $arguments) => $this->deleteStatement($arguments))

}
public function deleteAction(): Action
{
return Action::make('delete')
->label('')
->size('lg')
->iconButton()
->icon('heroicon-o-trash')
->tooltip('Delete statement')
->requiresConfirmation()
->action(fn (array $arguments) => $this->deleteStatement($arguments))

}
No description
No description
2 Replies
Dennis Koch
Dennis Koch4w ago
Maybe we should change this, so that there is not title="" attribute when there is an alternative tooltip
LeandroFerreira
->extraAttributes(['title' => null]) ?