F
Filament2mo ago
Arbaaz

Repeater doesn't work inside builder

Hello, After upgrading to v4 some functionality broke and I'm not able find the issue as i am trying to add row in the repeater but it doesnt work, i cannot or delete the repeater inside the builder block otherwise it works fine. It was working fine in filament v3. I discovered that when adding a new builder inside an existing builder, it doesn’t function properly essentially, nested builders don’t work.
Builder::make('page_data')
->columnSpanFull()
->required()
->addActionLabel('Add Other Related Fields')
->blockNumbers(false)
->blocks([
Builder\Block::make('seo')
->label(__('SEO'))
->columnSpanFull()
->icon('heroicon-o-document-magnifying-glass')
->schema([
Repeater::make('alternate')
->addActionLabel('Add Row')
->schema([
TextInput::make('alternate_url'),
TextInput::make('hreflang')
->label(__('hreflang')),
])
])
]),

Builder::make('page_data')
->columnSpanFull()
->required()
->addActionLabel('Add Other Related Fields')
->blockNumbers(false)
->blocks([
Builder\Block::make('seo')
->label(__('SEO'))
->columnSpanFull()
->icon('heroicon-o-document-magnifying-glass')
->schema([
Repeater::make('alternate')
->addActionLabel('Add Row')
->schema([
TextInput::make('alternate_url'),
TextInput::make('hreflang')
->label(__('hreflang')),
])
])
]),

Can someone help me figure out what is the breaking change that made this stop working after migration? Thanks in advance for any help.
7 Replies
toeknee
toeknee2mo ago
Please can you create a reproduction repository and a report a bug?
tomtom
tomtom2mo ago
Hi, I have the same issue but the other way around (builder inside a Repeater). hope this will be fixed soon, I'm kind of stuck...
deveti
deveti2mo ago
Same and there is no error anywhere so I do not know how to debug this.
awcodes
awcodes2mo ago
As, toeknee said, please submit an issue on GitHub with a reproduction repo
deveti
deveti2mo ago
GitHub
Repeater inside Builder Block can’t add or delete items · Issue ...
Package filament/filament Package Version v4.0.6 Laravel Version v12.26.4 Livewire Version v3.6.4 PHP Version 8.4.12 Problem description When using a Builder field and placing a Repeater inside a B...
fagner
fagner4w ago
i have the same error!
Dennis Koch
Dennis Koch4w ago
Report it on GitHub, not here.

Did you find this page helpful?