@@ -13,7 +13,7 @@ import EditorToolModalWrapper from '../editorBaseTools/EditorToolModalWrapper'
1313
1414import applyNav from 'rjsf-tabs'
1515import EditorNavs from './EditorNavs'
16- import EditorArrayFieldTemplate from './EditorArrayFieldTemplate'
16+ import ArrayFieldTemplate from './EditorArrayFieldTemplate'
1717import EditorChangesComparison from './EditorChangesComparison'
1818
1919import * as actionsEditor from './actions'
@@ -34,8 +34,10 @@ export class EditorSection extends React.Component {
3434 this . escFunction = this . escFunction . bind ( this )
3535 this . subMenuBtnClick = this . subMenuBtnClick . bind ( this )
3636 this . handleDropdownChange = this . handleDropdownChange . bind ( this )
37+ this . hideUischemaModal = this . hideUischemaModal . bind ( this )
3738
3839 this . state = {
40+ showUischemaModal : true ,
3941 schema : '' ,
4042 selecteduischema : '' ,
4143 selectedschema : '' ,
@@ -72,6 +74,11 @@ export class EditorSection extends React.Component {
7274 )
7375 }
7476
77+ hideUischemaModal ( ) {
78+ this . setState ( { showUischemaModal : false } )
79+ }
80+
81+
7582 handleDropdownChange ( selection , dropdown ) {
7683 const fileType = getFileType ( dropdown )
7784 this . setState (
@@ -387,7 +394,8 @@ export class EditorSection extends React.Component {
387394 { editorConfigFiles . length != 0 &&
388395 editorSchemaFiles . length != 0 &&
389396 editorUIAdvancedSimpleTest == true ? (
390- < div className = 'schema-loader-callout uischema-loader fadeout-box' >
397+ < div onClick = { this . hideUischemaModal } className = 'schema-loader-callout uischema-loader fadeout-box'
398+ style = { { display : this . state . showUischemaModal ? 'block' : 'none' } } >
391399 < p className = 'loader-callout' >
392400 Change 'Presentation Mode' to unhide/hide advanced settings
393401 </ p >
@@ -407,7 +415,7 @@ export class EditorSection extends React.Component {
407415 onChange = { this . handleChange }
408416 onError = { this . handleError }
409417 onNavChange = { this . onNavChange . bind ( this ) }
410- ArrayFieldTemplate = { EditorArrayFieldTemplate }
418+ templates = { { ArrayFieldTemplate } }
411419 activeNav = { activatedTab }
412420 >
413421 < EditorChangesComparison
0 commit comments