From b838e7494dbdab6f2235b1dcfa9ac274ea112737 Mon Sep 17 00:00:00 2001 From: dpschen Date: Thu, 18 Nov 2021 13:00:54 +0000 Subject: [PATCH] fix attribute coercion for contenteditable (#1025) Co-authored-by: Dominik Pschenitschni Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/1025 Reviewed-by: konrad Co-authored-by: dpschen Co-committed-by: dpschen --- src/components/tasks/partials/heading.vue | 2 +- src/views/list/views/Kanban.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/tasks/partials/heading.vue b/src/components/tasks/partials/heading.vue index 982315eb..19b82d59 100644 --- a/src/components/tasks/partials/heading.vue +++ b/src/components/tasks/partials/heading.vue @@ -7,7 +7,7 @@ :class="{'disabled': !canWrite}" @blur="save($event.target.textContent)" @keydown.enter.prevent.stop="$event.target.blur()" - :contenteditable="canWrite ? 'true' : 'false'" + :contenteditable="canWrite ? true : undefined" :spellcheck="false" > {{ task.title.trim() }} diff --git a/src/views/list/views/Kanban.vue b/src/views/list/views/Kanban.vue index b9687568..d2deb94f 100644 --- a/src/views/list/views/Kanban.vue +++ b/src/views/list/views/Kanban.vue @@ -43,7 +43,7 @@ @blur="saveBucketTitle(bucket.id, $event.target.textContent)" @click="focusBucketTitle" class="title input" - :contenteditable="(bucketTitleEditable && canWrite && !collapsedBuckets[bucket.id]) ? 'true' : 'false'" + :contenteditable="(bucketTitleEditable && canWrite && !collapsedBuckets[bucket.id]) ? true : undefined" :spellcheck="false">{{ bucket.title }}