Fix activity property input state loss
This commit is contained in:
parent
47dd372211
commit
f5f5c7115c
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue