Table Header Action Confirmation not work

basically I want to set the confirmation for this header table action but the confirmation not worked.
any help please ?
            ->headerActions([
                Action::make('create')
                    ->requiresConfirmation()
                    ->label('Create User')
                    ->icon('heroicon-o-plus-circle')
                    ->color('success')
                    ->form([
                        TextInput::make('name')
                            ->label('Full Name')
                            ->placeholder('John Doe')
                            ->required()
                            ->maxLength(255)
                            ->prefixIcon('heroicon-o-user')
                            ->columnSpanFull(),
                       
                    ])
                    ->action(function (array $data) {
                        User::create([
                            'name' => $data['name'],
                           
                        ]);
                    })
                    ->cancelParentActions()
                    ->modalHeading('Create User')
                    ->modalDescription('Create a new user')
                    ->modalSubmitActionLabel('Create User')
                    ->modalCancelActionLabel('Cancel')
                    ->modalWidth('md'),
Was this page helpful?