fix: properly reference task input textarea from parent component
continuous-integration/drone/push Build is passing Details

Resolves #1993
This commit is contained in:
kolaente 2022-05-23 22:33:30 +02:00
parent cadcaa966f
commit 745d4660d8
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 2 deletions

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 ) {