How to prepend next item instead of appending it in a Filament Repeater

If I add a new item in a repeater, it will be added at the end of all other items I want the new items appear at the top of the previous items. Is there any method or way?
1 Reply
Patrick Boivin
Patrick Boivin6mo ago
If you extend the Repeater class, you could modify the add action (getAddAction() method) to add the item at the start instead of at the end. Here: https://github.com/filamentphp/filament/blob/3.x/packages/forms/src/Components/Repeater.php#L173
Want results from more Discord servers?
Add your server