fix: safer access to textarea ref

This commit is contained in:
Shivam Mishra
2023-09-20 12:51:50 +05:30
parent 47921bca3d
commit 607e58465a
@@ -159,7 +159,7 @@ export default {
this.$emit('focus');
},
focus() {
this.$refs.textarea.focus();
if (this.$refs.textarea) this.$refs.textarea.focus();
},
},
};