mirror of
https://github.com/msoedov/agentic_security.git
synced 2026-11-28 21:13:27 +01:00
fix(Level: Error/Cannot read properties of undefined (reading 'contains')):
This commit is contained in:
1 parent
35fd373cb2
commit
54d159a737
1 file changed
+3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user