Skip to content

Commit 54d159a

Browse files
committed
fix(Level: Error/Cannot read properties of undefined (reading 'contains')):
1 parent 35fd373 commit 54d159a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

agentic_security/static/main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ var app = new Vue({
119119
document.addEventListener("mousedown", this.handleOutsideClick);
120120
},
121121
handleOutsideClick(event) {
122+
if (!this.$refs.textarea) {
123+
return
124+
}
122125
if (!this.$refs.textarea.contains(event.target)) {
123126
this.isFocused = false;
124127
document.removeEventListener("mousedown", this.handleOutsideClick);

0 commit comments

Comments
 (0)