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

fix(Popper): remove reference to popper element after destroy #2062

Merged
merged 4 commits into from
Oct 30, 2019

Conversation

jurokapsiar
Copy link
Contributor

Popper keeps a reference to the DOM node, which needs to be cleaned up
Temporarily fix it in the popper wrapper component until fixed properly in popper.

if (popperRef.current.popper) {
// Popper keeps a reference to the DOM node, which needs to be cleaned up
// temporarily fix it here until fixed properly in popper
popperRef.current.popper = null
Copy link
Member

Choose a reason for hiding this comment

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

I don't understand this. Setting the whole popperRef.current to null on the next line should be enough.

@miroslavstastny miroslavstastny merged commit df0e8f5 into master Oct 30, 2019
@miroslavstastny miroslavstastny deleted the fix/popper-reference branch October 30, 2019 09:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants