2nd action click produces empty modal

I have several Page classes where I'm using actions. I've noticed that if I click one action, then click another one, an empty modal will pop up (See screenshot).

Here's an example:

 protected function getActions(): array
    {
        return [
            Action::make('Export to Excel')
                ->label('Export to Excel')
                ->icon('heroicon-o-document-arrow-down')
                ->action(function () {
                    return $this->exportToExcel();
                }),
            Action::make('Export to PDF')
                ->label('Export to PDF')
                ->icon('heroicon-o-document-arrow-down')
                ->action(function () {
                    return $this->saveAsPdf();
                }),
        ];
    }


if I load up the page and click the Export to Excel action, it works fine, but if I were to click the export to PDF action first, and then click export to excel without refreshing the page, it opens the modal. I've noticed this across a few different pages/actions and I'm not sure what I'm doing wrong.
image.png
Was this page helpful?