You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Flag for determining whether the entity change has been started or not so that even if the initial and final value remains the same, the status should be changed to not loading
273
-
changeStarted: boolean;
274
273
ctrlPressed: boolean;
275
274
peekOverlayProps:
276
275
|(PeekOverlayStateProps&{
@@ -314,7 +313,6 @@ class CodeEditor extends Component<Props, State> {
314
313
isOpened: false,
315
314
autoCompleteVisible: false,
316
315
hinterOpen: false,
317
-
changeStarted: false,
318
316
ctrlPressed: false,
319
317
peekOverlayProps: undefined,
320
318
showAIWindow: false,
@@ -1309,17 +1307,17 @@ class CodeEditor extends Component<Props, State> {
1309
1307
instance?: CodeMirror.Editor,
1310
1308
changeObj?: CodeMirror.EditorChangeLinkedList,
1311
1309
)=>{
1312
-
constvalue=this.editor?.getValue()||"";
1310
+
constvalue=this.editor.getValue()||"";
1313
1311
constinputValue=this.props.input.value||"";
1314
1312
1315
1313
if(
1316
1314
this.props.input.onChange&&
1317
-
((value!==inputValue&&this.state.isFocused)||
1318
-
this.state.changeStarted)
1315
+
value!==inputValue&&
1316
+
this.state.isFocused
1319
1317
){
1320
-
this.setState({
1321
-
changeStarted: false,
1322
-
});
1318
+
/* This action updates the status of the savingEntity to true so that any
1319
+
shortcut commands do not execute before updating the entity in the store */
1320
+
this.props.startingEntityUpdate();
1323
1321
this.props.input.onChange(value);
1324
1322
}
1325
1323
@@ -1364,29 +1362,12 @@ class CodeEditor extends Component<Props, State> {
0 commit comments