Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

Tons of click listeners added to the document & never removed #94

Open
shai126 opened this issue Jan 2, 2019 · 1 comment
Open

Tons of click listeners added to the document & never removed #94

shai126 opened this issue Jan 2, 2019 · 1 comment
Assignees

Comments

@shai126
Copy link
Contributor

shai126 commented Jan 2, 2019

Every time the calendar is clicked a new event listener gets added to the document to check for a 'click off':

document.addEventListener('click', function (event) {

But we never remove this listener. So over time we end up with all these tons of click handlers being called simultaneously on each click…

Want a fix?

@kalepail
Copy link
Contributor

kalepail commented Jan 7, 2019

Would love to see a submission for a fix!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants