Skip to content

Commit a7ef045

Browse files
author
Vikas Agarwal
committed
Delayed JSON validation for JSON editor
1 parent c84cbf6 commit a7ef045

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/routes/metadata/components/FullScreenJSONEditor.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ const FullScreenJSONEditor = ({
2121
height="100%"
2222
width="100%"
2323
onChange={onJSONEdit}
24+
// onKeyPressUpdate={false}
25+
waitAfterKeyPress={3000}
2426
/>
2527
</div>
2628
</MobilePage>

src/routes/metadata/components/MetaDataPanel.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,8 @@ class MetaDataPanel extends React.Component {
594594
height="450px"
595595
// width='340px'
596596
onChange={this.onJSONEdit}
597+
// onKeyPressUpdate={false}
598+
waitAfterKeyPress={3000}
597599
/>
598600
{/* <ReactJson
599601
src={template}

src/routes/metadata/components/TemplateForm.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ class TemplateForm extends Component {
178178
height="250px"
179179
// width='0px'
180180
onChange={ (params) => { this.onJSONEdit(field, params) } }
181+
// onKeyPressUpdate={false}
182+
waitAfterKeyPress={3000}
181183
/>
182184
</div>
183185
)

0 commit comments

Comments
 (0)