Repeater behaves weirdly when there are multiple of them in the same form
See attached video, where I added some items to my repeaters and am unable to remove them. Deleting an item using the button causes another item to appear in another repeater.
My form consists of 3 sections, each containing a repeater. Here is the example code of the first section
Section::make('Lectures')
->description('Please rank the items in order of preference, with the topmost item being your most preferred choice.')
->schema([
Repeater::make('lecture_preferences')
->label('')
->addActionLabel('Add new')
->reorderableWithButtons()
->schema([
selectCourse(),
Checkbox::make('lock')
->inline(false),
Checkbox::make('disable')
->inline(false),
])
->columns(3)
->defaultItems(0),
]),
0 Replies