F
Filamentβ€’12mo ago
Lara Zeus

unexpected behavior in Repeater when contain a Toggle

filament v3.0.7 in a panel, a resource has a repeater, including text input and a toggle! there is unexpected behavior when adding or removing items some time won't delete, or delete with the next action (request), and when adding an item it will add two items or more. but if I disable the toggle or replace it with any other component the issue is gone!! (my actual repeater has so many fields with different types but I am testing in a fresh app) Initially I thought it's a LW queuing the requests or something like that, but when I removed the Toggle all good?! which now makes me crazier!! I let you watch the two videos... I have a repo ready if you want to test https://github.com/lara-zeus/test-fila-three/pull/3 but here is the simple code:
public static function form(Form $form): Form
{
return $form
->schema([
TextInput::make('name'),
Repeater::make('repeated_text')
->label('No Toggle')
->schema([
TextInput::make('name'),
//Toggle::make('aside'),
])->grid(2)
]);
}
public static function form(Form $form): Form
{
return $form
->schema([
TextInput::make('name'),
Repeater::make('repeated_text')
->label('No Toggle')
->schema([
TextInput::make('name'),
//Toggle::make('aside'),
])->grid(2)
]);
}
8 Replies
hckwnn
hckwnnβ€’12mo ago
same issue here, using checkbox instead :/ bug in and outside admin panel
Andrew Wallo
Andrew Walloβ€’12mo ago
If you believe there is a bug then I would report it. Especially since you have a repo ready. Issues reported in here won’t be fixed.
Log1x
Log1xβ€’12mo ago
yeah can confirm i get the issue as well. can you confirm that using a markdown form in a repeater and then changing its order makes the markdown component duplicate and freak out? i think repeaters in general are being a little strange with some of the inputs
Lara Zeus
Lara Zeusβ€’12mo ago
I wanted to make sure it's not just in my app :). I will report this in GH πŸ‘ I'll check that too
Log1x
Log1xβ€’12mo ago
ty
Lara Zeus
Lara Zeusβ€’12mo ago
GitHub
unexpected behavior in repeater when perform actions Β· Issue #7485 ...
Package filament/filament Package Version v3.0.8 Laravel Version 10.17.1 Livewire Version v3.0.0-beta.7 PHP Version 8.1.21 Problem description There is unexpected behavior when performing some acti...
Lara Zeus
Lara Zeusβ€’12mo ago
πŸŽ‰πŸŽ‰πŸŽ‰ did a quick test seems it fixed in the main branch on livewire if you want to test: add "livewire/livewire": "dev-main as 3.0" and do composer update -W
Patrick Boivin
Patrick Boivinβ€’12mo ago
O M G, I think the Builder field issues are fixed as well! πŸŽ‰ I used this version string : "livewire/livewire" : "dev-main as v3.0.0-beta.7" (running on Filament 3.x-dev)