feat(frontend): cancel editing task title with escape

This commit is contained in:
Daniel Pantle 2024-10-01 07:03:51 +02:00
parent 8d05b5cb01
commit 0938edc995

View File

@ -30,6 +30,7 @@
:spellcheck="false"
@blur="save(($event.target as HTMLInputElement).textContent as string)"
@keydown.enter.prevent.stop="($event.target as HTMLInputElement).blur()"
@keydown.esc.prevent.stop="($event.target as HTMLInputElement).textContent = task.title; ($event.target as HTMLInputElement).blur()"
>
{{ task.title.trim() }}
</h1>