fix: properly reference task input textarea from parent component

Resolves #1993
This commit is contained in:
kolaente 2022-05-23 22:33:30 +02:00
parent cadcaa966f
commit 745d4660d8
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -58,7 +58,7 @@
>
<add-task
@taskAdded="updateTaskList"
ref="newTaskInput"
ref="addTask"
:default-position="firstNewPosition"
/>
</template>
@ -262,7 +262,7 @@ export default defineComponent({
}, 200)
},
focusNewTaskInput() {
this.$refs.newTaskInput.focus()
this.$refs.addTask.$refs.newTaskInput.focus()
},
updateTaskList( task ) {
if ( this.isAlphabeticalSorting ) {