#Tab closes as soon as the Modal Opens!

2 messages · Page 1 of 1 (latest)

obtuse sedge
#

so i have to add a modal in a tab since the tab is too cluttered
i want to achieve two things:
1.open a modal without the tab closing
2.introduce a list in the current tab of the products attached

Tab::make('New')
->schema(function (Get $get, Set $set, $record) use ($form) {

                                        );

                                        return [

                                            Actions::make([
                                                Actions\Action::make('attach')
                                                    ->modalHeading('Product')
                                                    ->label('Attach Product)
                                                    ->modalSubmitActionLabel('Save')
                                                    ->modalWidth('4xl')
                                                    ->form([
                                                        TextInput::make('title')->required(),
                                                    ])
                                                    ->action(function (Get $get, Set $set) {
                                                        $set('excerpt', str($get('content'))->words(45, end: ''));
                                                    }),
                                            ])->alignment('right'),

                                        ];

                                    }),
spark horizonBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution