fix attribute coercion for contenteditable (#1025)
All checks were successful
continuous-integration/drone/push Build is passing

Co-authored-by: Dominik Pschenitschni <mail@celement.de>
Reviewed-on: #1025
Reviewed-by: konrad <k@knt.li>
Co-authored-by: dpschen <dpschen@noreply.kolaente.de>
Co-committed-by: dpschen <dpschen@noreply.kolaente.de>
This commit is contained in:
dpschen 2021-11-18 13:00:54 +00:00 committed by konrad
parent 745b4b56ec
commit b838e7494d
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
:class="{'disabled': !canWrite}" :class="{'disabled': !canWrite}"
@blur="save($event.target.textContent)" @blur="save($event.target.textContent)"
@keydown.enter.prevent.stop="$event.target.blur()" @keydown.enter.prevent.stop="$event.target.blur()"
:contenteditable="canWrite ? 'true' : 'false'" :contenteditable="canWrite ? true : undefined"
:spellcheck="false" :spellcheck="false"
> >
{{ task.title.trim() }} {{ task.title.trim() }}

View File

@ -43,7 +43,7 @@
@blur="saveBucketTitle(bucket.id, $event.target.textContent)" @blur="saveBucketTitle(bucket.id, $event.target.textContent)"
@click="focusBucketTitle" @click="focusBucketTitle"
class="title input" class="title input"
:contenteditable="(bucketTitleEditable && canWrite && !collapsedBuckets[bucket.id]) ? 'true' : 'false'" :contenteditable="(bucketTitleEditable && canWrite && !collapsedBuckets[bucket.id]) ? true : undefined"
:spellcheck="false">{{ bucket.title }}</h2> :spellcheck="false">{{ bucket.title }}</h2>
<span <span
:class="{'is-max': bucket.tasks.length >= bucket.limit}" :class="{'is-max': bucket.tasks.length >= bucket.limit}"