Tab closes as soon as the Modal Opens!
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'), ]; }),
); 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'), ]; }),
1 Reply
instead added nested collapsible repeaters and didnt need to do the above