From 3dd3b00b06dec1ff6be4934c3b19ff2c267cc8c0 Mon Sep 17 00:00:00 2001 From: Giga Chubinidze Date: Fri, 8 Dec 2023 16:20:02 +0400 Subject: [PATCH] preventing esc and enter from interfering --- app/javascript/vue/shared/inline_edit.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/javascript/vue/shared/inline_edit.vue b/app/javascript/vue/shared/inline_edit.vue index b49a79a61..b89de6436 100644 --- a/app/javascript/vue/shared/inline_edit.vue +++ b/app/javascript/vue/shared/inline_edit.vue @@ -14,7 +14,7 @@ v-model="newValue" @keydown="handleKeypress" @blur="handleBlur" - @keyup.escape="cancelEdit" + @keyup.escape="cancelEdit && this.atWhoOpened" @focus="setCaretAtEnd"/>