From 3d0f5525f3cc77936a35aea69bd582ae69059228 Mon Sep 17 00:00:00 2001 From: AndzejsP Date: Fri, 5 May 2023 12:52:56 +0300 Subject: [PATCH] title can be confirmed w enter and cancel w esc --- web/src/components/Discussion.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/Discussion.vue b/web/src/components/Discussion.vue index 0dcab0f0..92fdea0b 100644 --- a/web/src/components/Discussion.vue +++ b/web/src/components/Discussion.vue @@ -11,7 +11,7 @@

{{ title ? title === "untitled" ? "New discussion" : title : "New discussion" }}

+ :value="title" required @keydown.enter.exact="editTitleEvent()" @keydown.esc.exact="editTitleMode = false " @input="chnageTitle($event.target.value)" @click.stop>