Actions not working in forms inside a Widget

When we use any type of action (hintAction, prefixAction, suffixAction) inside the form of a widget, it does not work. A livewire request is made but the form does not load. I also noticed that the code inside the ->action() also does not run.

However, if I remove the ->form() from this action, the code inside the ->action() runs.

public function form(Form $form): Form
    {
        return $form
            ->schema([
                Repeater::make('Create Sales')
                    ->schema([
                        Select::make('supplier_id')
                            ->options()->hintAction(
                                Action::make('create')
                                    ->form([
                                        TextInput::make('name')
->label('Name')
->placeholder('Name'),

                                        
                                    ])
                                    ->action(function ($data) {
                                        dd('what');
                                        $supplierService = new SupplierService;
                                        $supplierService->createSupplier($data);
                                    })
                            ),
                            ])->statePath('data');
                            }
Was this page helpful?