-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
if (val) {
return document.addEventListener('click', this.clickAway);
} else {
return document.removeEventListener('click', this.clickAway);
}If Target exists within an element that has stopped event propagation somewhere along the chain, the removeEventListener here will never be called.
solution
Hook into a vue lifecycle hook (destroyed?) to ensure this event listener is removed.
Metadata
Metadata
Assignees
Labels
No labels