diff --git a/packages/editor-ui/src/components/ExpandableInput/ExpandableInputEdit.vue b/packages/editor-ui/src/components/ExpandableInput/ExpandableInputEdit.vue index bed1a0c495..b90d8cfb38 100644 --- a/packages/editor-ui/src/components/ExpandableInput/ExpandableInputEdit.vue +++ b/packages/editor-ui/src/components/ExpandableInput/ExpandableInputEdit.vue @@ -10,7 +10,7 @@ @keydown.esc="onEscape" ref="input" size="4" - v-click-outside="onBlur" + v-click-outside="onClickOutside" /> @@ -47,8 +47,10 @@ export default Vue.extend({ onEnter() { this.$emit('enter', (this.$refs.input as HTMLInputElement).value); }, - onBlur() { - this.$emit('blur', (this.$refs.input as HTMLInputElement).value); + onClickOutside(e: Event) { + if (e.type === 'click') { + this.$emit('blur', (this.$refs.input as HTMLInputElement).value); + } }, onEscape() { this.$emit('esc'); diff --git a/packages/editor-ui/src/components/NodeCreator/NodeCreator.vue b/packages/editor-ui/src/components/NodeCreator/NodeCreator.vue index 4c9eccf5e0..ea36daf9be 100644 --- a/packages/editor-ui/src/components/NodeCreator/NodeCreator.vue +++ b/packages/editor-ui/src/components/NodeCreator/NodeCreator.vue @@ -1,7 +1,7 @@