diff --git a/core/core-frontend/src/custom-component/v-query/TextSearch.vue b/core/core-frontend/src/custom-component/v-query/TextSearch.vue index d42ec8cb48..2c1ccd019d 100644 --- a/core/core-frontend/src/custom-component/v-query/TextSearch.vue +++ b/core/core-frontend/src/custom-component/v-query/TextSearch.vue @@ -109,7 +109,10 @@ const lineWidth = computed(() => { return { width: getCustomWidth() - 15 + 'px', background: customStyle.border } }) -const handleKeyEnter = () => { +const handleKeyEnter = ($event: any = {}) => { + if ($event?.isComposing) { + return + } handleValueChange() } @@ -140,7 +143,7 @@ const handleInnerMouseDown = e => { :style="selectStyle" :placeholder="placeholderText" @blur="handleValueChange" - @keydown.enter="handleKeyEnter" + @keydown.enter.exact.prevent="($event: any) => handleKeyEnter($event)" class="condition-value-input" v-model="config.conditionValueF" /> @@ -165,7 +168,7 @@ const handleInnerMouseDown = e => { :style="selectStyle" @blur="handleValueChange" :placeholder="placeholderText" - @keydown.enter="handleKeyEnter" + @keydown.enter.exact.prevent="($event: any) => handleKeyEnter($event)" class="condition-value-input" v-model="config.conditionValueS" />