firstUpdated(){
window.addEventListener('mousedown', this.handleClickOutside);
}
handleClickOutside = (e) => {
if(!this.contains(e.target)){
this.activeList = false;
}
}
Use arrow functions, if you use normal functions the context of "this" is a window object