diff --git a/src/components/Item.vue b/src/components/Item.vue index 9512c671..c131e312 100644 --- a/src/components/Item.vue +++ b/src/components/Item.vue @@ -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) {