fix: properly define focus expose for new task input field
resolves #1993
This commit is contained in:
@ -198,6 +198,14 @@ function handleEnter(e: KeyboardEvent) {
|
||||
e.preventDefault()
|
||||
addTask()
|
||||
}
|
||||
|
||||
function focusTaskInput() {
|
||||
newTaskInput.value.focus()
|
||||
}
|
||||
|
||||
defineExpose({
|
||||
focusTaskInput,
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
Reference in New Issue
Block a user