SelectAction in table header not working

            ->headerActions([
                SelectAction::make('changeConnection')->label('Change Connection')
                    ->options(collect($this->connections)->pluck('name','id'))
                    ->action(function(){
                        dd(546456);
                    }),
                Action::make('test')->label('Test')->action(fn () => dd(3432))
            ])


Test action works fine. When I try changing the SelectAction nothing happens.

Its in a custom page.
Was this page helpful?