fix(ui): properly formats collapsible field IDs (#5435)

* test: passing collapsible fields test suite

* chore: passes indexPath into ArrayRow & updates path in collapsible field

* fix: collapsible paths and indexPath prop types

* chore: improves path and schemaPath syntax

* leftover

* chore: updates selectors in collapsibles tests

* chore: updates selector in live-preview test suite

---------

Co-authored-by: Jacob Fletcher <jacobsfletch@gmail.com>
This commit is contained in:
Patrik
2024-03-25 14:16:35 -04:00
committed by GitHub
parent 76e9bd8ad6
commit a9b46a4d63
14 changed files with 54 additions and 23 deletions

View File

@@ -46,6 +46,7 @@ export const ArrayRow: React.FC<ArrayRowProps> = ({
fieldMap,
forceRender = false,
hasMaxRows,
indexPath,
labels,
listeners,
moveRow,
@@ -128,6 +129,7 @@ export const ArrayRow: React.FC<ArrayRowProps> = ({
className={`${baseClass}__fields`}
fieldMap={fieldMap}
forceRender={forceRender}
indexPath={indexPath}
margins="small"
path={path}
permissions={permissions?.fields}