Fix input.focus error

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr 2021-07-24 15:55:54 +02:00
parent 3db5ab3125
commit 16e872ec81
1 changed files with 3 additions and 1 deletions

View File

@ -154,7 +154,9 @@ export default {
},
},
mounted() {
this.$refs.input.focus()
if (typeof this.$refs.input !== 'undefined') {
this.$refs.input.focus()
}
},
methods: {
async onRenameSubmit(event) {