mirror of
https://github.com/msoedov/agentic_security.git
synced 2026-06-24 06:09:55 +02:00
fix(Level: Error/Cannot read properties of undefined (reading 'contains')):
This commit is contained in:
@@ -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