fix(Level: Error/Cannot read properties of undefined (reading 'contains')):

This commit is contained in:
Alexander Myasoedov
2025-04-02 19:56:48 +03:00
parent 35fd373cb2
commit 54d159a737
+3
View File
@@ -119,6 +119,9 @@ var app = new Vue({
document.addEventListener("mousedown", this.handleOutsideClick);
},
handleOutsideClick(event) {
if (!this.$refs.textarea) {
return
}
if (!this.$refs.textarea.contains(event.target)) {
this.isFocused = false;
document.removeEventListener("mousedown", this.handleOutsideClick);