Fix activity property input state loss

This commit is contained in:
Sipke Schoorstra 2023-01-17 12:33:57 +01:00
parent 47dd372211
commit f5f5c7115c
2 changed files with 1 additions and 11 deletions

View file

@ -20,12 +20,11 @@ export interface ExpressionChangedArs {
export class InputControlSwitch {
private contextMenu: HTMLElement;
private monacoEditor: HTMLElsaMonacoEditorElement;
private defaultSyntaxValue: string;
private contextMenuWidget: HTMLElement;
private readonly onExpressionChangedDebounced: (e: MonacoValueChangedArgs) => void;
constructor() {
this.onExpressionChangedDebounced = debounce(this.onExpressionChanged, 1000);
this.onExpressionChangedDebounced = debounce(this.onExpressionChanged, 10);
}
@Prop() label: string;

View file

@ -39,15 +39,6 @@ export class MonacoEditor {
this.monaco.editor.setModelLanguage(model, this.language);
}
@Watch('value')
valueChangeHandler(newValue: string) {
if (!this.editor)
return;
const model = this.editor.getModel();
//model.setValue(newValue || '');
}
@Method()
async setJavaScriptLibs(libs: Array<MonacoLib>) {
const monaco = this.monaco;