diff --git a/src/components/todos/SingleTodo/SingleTodo.ts b/src/components/todos/SingleTodo/SingleTodo.ts index 44fd0d1..f8365bb 100644 --- a/src/components/todos/SingleTodo/SingleTodo.ts +++ b/src/components/todos/SingleTodo/SingleTodo.ts @@ -173,9 +173,12 @@ export default class SingleTodo extends Vue { this.descrtoEdit = this.itemtodo.descr - let theField = this.$refs.inputdescr - theField.focus() - console.log('focus()') + let mythis = this + setTimeout(() => { + let theField = mythis.$refs.inputdescr + theField.focus() + console.log('focus()') + }, 0) console.log('FINE - editTodo') }