From fd8f1aae77504c66d0025f64e5adae0ee8e64f2a Mon Sep 17 00:00:00 2001 From: Jonas Rittershofer Date: Tue, 9 Jun 2020 21:11:48 +0200 Subject: [PATCH] Activate Edit-Mode by focus Signed-off-by: Jonas Rittershofer --- src/components/Questions/Question.vue | 20 ++++++++++++++++++- src/components/Questions/QuestionMultiple.vue | 16 +++++++++++++-- 2 files changed, 33 insertions(+), 3 deletions(-) diff --git a/src/components/Questions/Question.vue b/src/components/Questions/Question.vue index 269ed57..ab43581 100644 --- a/src/components/Questions/Question.vue +++ b/src/components/Questions/Question.vue @@ -25,7 +25,9 @@ :class="{ 'question--edit': edit }" :aria-label="t('forms', 'Question number {index}', {index})" class="question" - @click="enableEdit"> + @click="enableEdit" + @focusin="onFocusIn" + @focusout="onFocusOut">