diff --git a/packages/editor-ui/src/components/TextEdit.vue b/packages/editor-ui/src/components/TextEdit.vue index 6a4de8a450932..7ee367556d53a 100644 --- a/packages/editor-ui/src/components/TextEdit.vue +++ b/packages/editor-ui/src/components/TextEdit.vue @@ -4,7 +4,7 @@
-
+
@@ -35,6 +35,13 @@ export default Vue.extend({ this.$emit('valueChanged', value); }, + onKeyDownEsc () { + // Resetting input value when closing the dialog, required when closing it using the `Esc` key + this.tempValue = this.value; + + this.closeDialog(); + }, + closeDialog () { // Handle the close externally as the visible parameter is an external prop // and is so not allowed to be changed here.