fix: blur quick add input on escape
This commit is contained in:
parent
9d18ba236f
commit
5edc7b5160
|
|
@ -25,6 +25,7 @@
|
||||||
rows="1"
|
rows="1"
|
||||||
@keydown="resetEmptyTitleError"
|
@keydown="resetEmptyTitleError"
|
||||||
@keydown.enter="handleEnter"
|
@keydown.enter="handleEnter"
|
||||||
|
@keydown.esc="blurTaskInput"
|
||||||
/>
|
/>
|
||||||
<QuickAddMagic
|
<QuickAddMagic
|
||||||
:highlight-hint-icon="taskAddHovered"
|
:highlight-hint-icon="taskAddHovered"
|
||||||
|
|
@ -282,6 +283,10 @@ function focusTaskInput() {
|
||||||
newTaskInput.value?.focus()
|
newTaskInput.value?.focus()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function blurTaskInput() {
|
||||||
|
newTaskInput.value?.blur()
|
||||||
|
}
|
||||||
|
|
||||||
defineExpose({
|
defineExpose({
|
||||||
focusTaskInput,
|
focusTaskInput,
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue