1
0

fix: properly define focus expose for new task input field

resolves #1993
This commit is contained in:
kolaente
2022-06-17 14:23:39 +02:00
parent ae6bda3cf4
commit e0864fab3e
2 changed files with 9 additions and 1 deletions

View File

@ -198,6 +198,14 @@ function handleEnter(e: KeyboardEvent) {
e.preventDefault()
addTask()
}
function focusTaskInput() {
newTaskInput.value.focus()
}
defineExpose({
focusTaskInput,
})
</script>
<style lang="scss" scoped>