#suffix action in the wrong place

4 messages · Page 1 of 1 (latest)

smoky scroll
#

my simple code :

public static function form(Form $form): Form
   {
       return $form
           ->schema([
               Section::make('Surgical Team and Infrastructure')
                   ->columns(3)
                   ->schema([
                       Select::make('hospital')
                           ->suffixIcon('heroicon-o-plus-circle')
                           ->suffixAction(
                               Action::make('dd')
                                   ->form([
                                       TextInput::make('testing')
                                       ])
                                   
                           ),
                       Select::make('anesthetist_group'),
                       Select::make('professional')
                   ])
           ]);
   }
trail windBOT
#

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

thorny oar
#

Remove: ->suffixIcon('heroicon-o-plus-circle')

Chain ->icon('heroicon-o-plus-circle') to ->suffixAction