Have to refresh custom page for action's model to 'click' after running other action.

I have a custom page 'Tools' that prints a PDF which works fine. It uses a model to select from a list and then the user presses Submit .
But if I first run another Action that displays data on the page the model's Submit button will not 'click' until after page refresh.
The page is a simple blade directive @if(ownName) that has a table inside.
The action populates the $this->ownName.

This modal becomes un-clickable

Action::make('genSchedPdf')
            ->label('Generate Schedule PDF')
            ->action('genSchedPdf')
            ->form([
                Select::make('location')
                    ->options(Location::query()->pluck('name', 'id'))
                    ->required()
                    ->default(1)
                    ->disablePlaceholderSelection(),
  ]),

public function genSchedPdf($data)
    {
        
        $filePath = 'storage/schedule.pdf';
        $pdf = new SchedPdfController;
        $pdf->generatePdf($filePath, $data['location']);

        Notification::make() 
            ->title('Generation complete.')
            ->success()
            ->send(); 
        
        return response()->download($filePath);
    }
Was this page helpful?