Prevent newly created item from being collapsed

Hi,

I have a question about using collapsed() in Repeaters. I'm trying to ensure that when I add a new item to my repeater, the newly created item is expanded by default, while the previously existing items remain collapsed (or expanded). How can I achieve this?

Repeater::make('items')
  ->schema([...])
  ->collapsible()
  ->collapsed()
  ->...
Was this page helpful?