Select field inside the repeater - duplicate data when reordered (drag & drop)

  • Solved
  • Posted 4 weeks ago

I am facing an issue with a repeater field where using a Select field inside the repeater causes data to be duplicated between repeater rows after rows are reordered (drag & drop) in the editor.

Structure:

PAGES (Repeater)
└─ ELEMENTS (Repeater)
……….├─ Element type (Select)
……….├─ Text (WYSIWYG) (type = text)
……….├─ Image (File) (type = image)
……….├─ Video URL (URL) (type = video)
……….├─ Button URL (URL) (type = button)
……….└─ Button label (Text) (type = button)

Issue:
When the Select field is present, field values (text, button URL, button label, etc.) are copied between different repeater rows after reordering rows via drag & drop.

Example:

Create a Text element and enter content.

Create a Button element and enter URL and label.

Reorder the repeater rows.

After saving, changing the type of one row shows data from another row.

This looks like the Select field or its conditional logic is not isolated per repeater row during reordering.

Important:
If the Select field is removed and fields are not conditional, repeater rows work correctly and no data is duplicated.

Question:
How can I prevent data from one repeater row from being copied into others when rows are reordered?

Thank you