fix: blur quick add input on escape

This commit is contained in:
Rashed Arman 2026-06-18 13:16:36 +00:00 committed by kolaente
parent 9d18ba236f
commit 5edc7b5160
1 changed files with 5 additions and 0 deletions

View File

@ -25,6 +25,7 @@
rows="1"
@keydown="resetEmptyTitleError"
@keydown.enter="handleEnter"
@keydown.esc="blurTaskInput"
/>
<QuickAddMagic
:highlight-hint-icon="taskAddHovered"
@ -282,6 +283,10 @@ function focusTaskInput() {
newTaskInput.value?.focus()
}
function blurTaskInput() {
newTaskInput.value?.blur()
}
defineExpose({
focusTaskInput,
})