diff --git a/packages/editor-ui/src/components/ParameterInputFull.vue b/packages/editor-ui/src/components/ParameterInputFull.vue index 7cf102f6af..e721164b22 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(() => {