fix: properly reference task input textarea from parent component
Resolves #1993
This commit is contained in:
parent
cadcaa966f
commit
745d4660d8
1 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@
|
||||||
>
|
>
|
||||||
<add-task
|
<add-task
|
||||||
@taskAdded="updateTaskList"
|
@taskAdded="updateTaskList"
|
||||||
ref="newTaskInput"
|
ref="addTask"
|
||||||
:default-position="firstNewPosition"
|
:default-position="firstNewPosition"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
@ -262,7 +262,7 @@ export default defineComponent({
|
||||||
}, 200)
|
}, 200)
|
||||||
},
|
},
|
||||||
focusNewTaskInput() {
|
focusNewTaskInput() {
|
||||||
this.$refs.newTaskInput.focus()
|
this.$refs.addTask.$refs.newTaskInput.focus()
|
||||||
},
|
},
|
||||||
updateTaskList( task ) {
|
updateTaskList( task ) {
|
||||||
if ( this.isAlphabeticalSorting ) {
|
if ( this.isAlphabeticalSorting ) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue