@@ -22,15 +22,15 @@ function ArrayFieldTitle({TitleField, idSchema, title, required}) {
2222 if ( ! title ) {
2323 return null ;
2424 }
25- const id = `${ idSchema . id } __title` ;
25+ const id = `${ idSchema . $ id} __title` ;
2626 return < TitleField id = { id } title = { title } required = { required } /> ;
2727}
2828
2929function ArrayFieldDescription ( { DescriptionField, idSchema, description} ) {
3030 if ( ! description ) {
3131 return null ;
3232 }
33- const id = `${ idSchema . id } __description` ;
33+ const id = `${ idSchema . $ id} __description` ;
3434 return < DescriptionField id = { id } description = { description } /> ;
3535}
3636
@@ -185,7 +185,7 @@ class ArrayField extends Component {
185185 < div className = "row array-item-list" > {
186186 items . map ( ( item , index ) => {
187187 const itemErrorSchema = errorSchema ? errorSchema [ index ] : undefined ;
188- const itemIdPrefix = idSchema . id + "_" + index ;
188+ const itemIdPrefix = idSchema . $ id + "_" + index ;
189189 const itemIdSchema = toIdSchema ( itemsSchema , itemIdPrefix , definitions ) ;
190190 return this . renderArrayFieldItem ( {
191191 index,
@@ -216,7 +216,7 @@ class ArrayField extends Component {
216216 const Widget = ( multipleCheckboxes ) ? CheckboxesWidget : SelectWidget ;
217217 return (
218218 < Widget
219- id = { idSchema && idSchema . id }
219+ id = { idSchema && idSchema . $ id}
220220 multiple
221221 onChange = { this . onSelectChange }
222222 options = { { enumOptions : optionsList ( itemsSchema ) } }
@@ -235,7 +235,7 @@ class ArrayField extends Component {
235235 const { items} = this . state ;
236236 return (
237237 < FileWidget
238- id = { idSchema && idSchema . id }
238+ id = { idSchema && idSchema . $ id}
239239 multiple
240240 onChange = { this . onSelectChange }
241241 schema = { schema }
@@ -287,7 +287,7 @@ class ArrayField extends Component {
287287 const additional = index >= itemSchemas . length ;
288288 const itemSchema = additional ?
289289 additionalSchema : itemSchemas [ index ] ;
290- const itemIdPrefix = idSchema . id + "_" + index ;
290+ const itemIdPrefix = idSchema . $ id + "_" + index ;
291291 const itemIdSchema = toIdSchema ( itemSchema , itemIdPrefix , definitions ) ;
292292 const itemUiSchema = additional ?
293293 uiSchema . additionalItems || { } :
0 commit comments