From 5121fee7914d7559ff625b80a24ac5fcee1f2a76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Wed, 28 Dec 2022 10:25:00 +0100 Subject: [PATCH] :sparkles: Switch to expression on `=` input --- packages/editor-ui/src/components/ParameterInputFull.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/editor-ui/src/components/ParameterInputFull.vue b/packages/editor-ui/src/components/ParameterInputFull.vue index 7cf102f6afe34..e721164b22e36 100644 --- a/packages/editor-ui/src/components/ParameterInputFull.vue +++ b/packages/editor-ui/src/components/ParameterInputFull.vue @@ -54,6 +54,7 @@ :forceShowExpression="forceShowExpression" :hint="hint" @valueChanged="valueChanged" + @textInput="onTextInput" @focus="onFocus" @blur="onBlur" @drop="onDrop" @@ -207,6 +208,13 @@ export default mixins(showMessage).extend({ valueChanged(parameterData: IUpdateInformation) { this.$emit('valueChanged', parameterData); }, + onTextInput(parameterData: IUpdateInformation) { + const param = this.$refs.param as Vue | undefined; + + if (isValueExpression(this.parameter, parameterData.value)) { + param?.$emit('optionSelected', 'addExpression'); + } + }, onDrop(data: string) { this.forceShowExpression = true; setTimeout(() => {