1- import React , { Component , PropTypes } from "react" ;
1+ import React , { Component , PropTypes } from "react" ;
22
33import {
44 getAlternativeWidget ,
@@ -20,19 +20,19 @@ import FileWidget from "./../widgets/FileWidget";
2020function ArrayFieldTitle ( { TitleField, idSchema, title, required} ) {
2121 if ( ! title ) {
2222 // See #312: Ensure compatibility with old versions of React.
23- return < div /> ;
23+ return < div /> ;
2424 }
2525 const id = `${ idSchema . $id } __title` ;
26- return < TitleField id = { id } title = { title } required = { required } /> ;
26+ return < TitleField id = { id } title = { title } required = { required } /> ;
2727}
2828
2929function ArrayFieldDescription ( { DescriptionField, idSchema, description} ) {
3030 if ( ! description ) {
3131 // See #312: Ensure compatibility with old versions of React.
32- return < div /> ;
32+ return < div /> ;
3333 }
3434 const id = `${ idSchema . $id } __description` ;
35- return < DescriptionField id = { id } description = { description } /> ;
35+ return < DescriptionField id = { id } description = { description } /> ;
3636}
3737
3838class ArrayField extends Component {
@@ -179,12 +179,12 @@ class ArrayField extends Component {
179179 TitleField = { TitleField }
180180 idSchema = { idSchema }
181181 title = { title }
182- required = { required } />
182+ required = { required } />
183183 { schema . description ?
184184 < ArrayFieldDescription
185185 DescriptionField = { DescriptionField }
186186 idSchema = { idSchema }
187- description = { schema . description } /> : null }
187+ description = { schema . description } /> : null }
188188 < div className = "row array-item-list" > {
189189 items . map ( ( item , index ) => {
190190 const itemErrorSchema = errorSchema ? errorSchema [ index ] : undefined ;
@@ -204,7 +204,7 @@ class ArrayField extends Component {
204204 } )
205205 } </ div >
206206 < AddButton
207- onClick = { this . onAddClick } disabled = { disabled || readonly } />
207+ onClick = { this . onAddClick } disabled = { disabled || readonly } />
208208 </ fieldset >
209209 ) ;
210210 }
@@ -229,8 +229,7 @@ class ArrayField extends Component {
229229 value = { items }
230230 disabled = { disabled }
231231 readonly = { readonly }
232- autofocus = { autofocus }
233- />
232+ autofocus = { autofocus } />
234233 ) ;
235234 }
236235
@@ -248,8 +247,7 @@ class ArrayField extends Component {
248247 value = { items }
249248 disabled = { disabled }
250249 readonly = { readonly }
251- autofocus = { autofocus }
252- />
250+ autofocus = { autofocus } />
253251 ) ;
254252 }
255253
@@ -286,7 +284,7 @@ class ArrayField extends Component {
286284 TitleField = { TitleField }
287285 idSchema = { idSchema }
288286 title = { title }
289- required = { required } />
287+ required = { required } />
290288 { schema . description ?
291289 < div className = "field-description" > { schema . description } </ div > : null }
292290 < div className = "row array-item-list" > {
@@ -319,7 +317,7 @@ class ArrayField extends Component {
319317 {
320318 additionalSchema ? < AddButton
321319 onClick = { this . onAddClick }
322- disabled = { disabled || readonly } /> : null
320+ disabled = { disabled || readonly } /> : null
323321 }
324322 </ fieldset >
325323 ) ;
@@ -363,7 +361,7 @@ class ArrayField extends Component {
363361 registry = { this . props . registry }
364362 disabled = { this . props . disabled }
365363 readonly = { this . props . readonly }
366- autofocus = { autofocus } />
364+ autofocus = { autofocus } />
367365 </ div >
368366 {
369367 hasToolbar ?
0 commit comments