Skip to content

Conditional fields render in reverse order when condition is met #6622

Description

@guardian-automation

Bug Summary

Conditional fields added under a condition are displayed in reverse order (bottom to top) in Preview mode.

Steps to Reproduce

1. Create a new schema

2. Add a field with an enum type, with values Yes and No

3. Add a condition against that field for when the value is Yes

4. Add more than one field inside the condition block

5. Switch to Preview mode and observe the order the conditional fields are presented

Expected Result

Conditional fields should appear in the same order they were added (top to bottom) when the condition is triggered in Preview mode.

Actual Result

Conditional fields are displayed in reverse order. The last field added appears first, indicating the list is being read bottom to top.

Artifacts

N/A

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions