Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue with edge for double insert #106

Merged
merged 3 commits into from
Nov 27, 2018

Conversation

Mattchewone
Copy link
Contributor

The inner element was being rendered twice, renderTagsInDocument was calling renderNodeAndChildren which was recursively mounting elements, and then mutation observer was adding it again.

Closes: #105

The inner element was being rendered twice, renderTagsInDocument was calling renderNodeAndChildren which was recursively mounting elements, and then mutation observer was adding it again
Improved the tagHandler to consolidate the check to see if the element has already been rendered
@Mattchewone Mattchewone force-pushed the 105-bug-in-edge-double-insert branch from 3f39421 to 43639f6 Compare November 23, 2018 20:04
@nmingneau
Copy link

Nice fix, I see my legend component isn't rendering four times anymore when trying this code.

@Mattchewone Mattchewone merged commit 397b968 into master Nov 27, 2018
@Mattchewone Mattchewone deleted the 105-bug-in-edge-double-insert branch November 27, 2018 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants