Skip to content
This repository has been archived by the owner on Sep 15, 2020. It is now read-only.

[BUGFIX] Destroying an opened popover removes all attached listeners #66

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

cyril-sf
Copy link
Contributor

@cyril-sf cyril-sf commented Nov 11, 2019

The _popperKeyHandler event handler is added when the popover opens and is removed when it closes.

However, it's possible to destroy the component before closing the popover, leading to a memory leak. This PR simply makes sure that all event handlers are removed in willDestroyElement.

Need #67 to be merged first to fix the build.

@mixonic
Copy link
Member

mixonic commented Nov 12, 2019

@cyril-sf I think CI here wants attention.

@cyril-sf
Copy link
Contributor Author

@mixonic I know, I'm looking at it.

@cyril-sf cyril-sf changed the title [BUGFIX] Destroying an opened popover removes all attached listeneres [BUGFIX] Destroying an opened popover removes all attached listeners Nov 12, 2019
@mixonic
Copy link
Member

mixonic commented Nov 14, 2019

Changes here look fine though I've asked for some work on #67

Copy link
Contributor

@bantic bantic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@aschenoni aschenoni self-assigned this May 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants