Builder inside Custom Block Modal

Is this possible or will it be at some point? An example could be a A Hero Block where you would like to add multiple hero elements as a Slider/Carousel. I tried it like this:
public static function configureEditorAction(Action $action): Action
{
return $action
->modalDescription('Configure the hero section')
->schema([
Builder::make('hero')
->blocks([
Builder\Block::make('hero')
->schema([
TextInput::make('title')
->live(onBlur: true)
->required()
->label('Title'),
TextInput::make('description')
->nullable()
->label('Description'),
TextInput::make('image')
->nullable()
->label('Image URL'),
])
->label('Hero Section'),
]),
]);
}
public static function configureEditorAction(Action $action): Action
{
return $action
->modalDescription('Configure the hero section')
->schema([
Builder::make('hero')
->blocks([
Builder\Block::make('hero')
->schema([
TextInput::make('title')
->live(onBlur: true)
->required()
->label('Title'),
TextInput::make('description')
->nullable()
->label('Description'),
TextInput::make('image')
->nullable()
->label('Image URL'),
])
->label('Hero Section'),
]),
]);
}
Solution:
There’s currently a bug with actions inside of modals. https://github.com/filamentphp/filament/issues/16549
GitHub
v4: actions in modal actions with livewire component not working ·...
Package filament/filament Package Version v4.0.0-beta5 Laravel Version v12.18.0 Livewire Version v3.6.3 PHP Version PHP8.2+ Breaking change description Filament actions have a modalContent option w...
Jump to solution
1 Reply
Solution
awcodes
awcodes3mo ago
There’s currently a bug with actions inside of modals. https://github.com/filamentphp/filament/issues/16549
GitHub
v4: actions in modal actions with livewire component not working ·...
Package filament/filament Package Version v4.0.0-beta5 Laravel Version v12.18.0 Livewire Version v3.6.3 PHP Version PHP8.2+ Breaking change description Filament actions have a modalContent option w...

Did you find this page helpful?