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

fix(FocusZone): Cleanup DOM element references on unmount#2304

Closed
johannao76 wants to merge 4 commits intomicrosoft:masterfrom
johannao76:fix-focus-zone-leak
Closed

fix(FocusZone): Cleanup DOM element references on unmount#2304
johannao76 wants to merge 4 commits intomicrosoft:masterfrom
johannao76:fix-focus-zone-leak

Conversation

@johannao76
Copy link
Contributor

The FocusZone component holds references to _activeElement and _defaultFocusElement. These references should be nulled out when the component is unmounted to prevent memory leaks.

Fixes #2303

…unted

The FocusZone component holds references to _activeElement and _defaultFocusElement. These references should be nulled out when the component is unmounted to prevent memory leaks.

closes microsoft#2303
@DustyTheBot
Copy link
Collaborator

DustyTheBot commented Feb 1, 2020

Perf comparison

Status Scenario Fluent TPI Fabric TPI Ratio Iterations Ticks
🔧 Avatar.Fluent 0.58 0.37 1.57:1 2000 1159
🔧 Button.Fluent 1.2 0.16 7.5:1 1000 1197
🔧 Checkbox.Fluent 1.33 0.27 4.93:1 1000 1330
🔧 Dialog.Fluent 0.31 0.15 2.07:1 5000 1563
🔧 Dropdown.Fluent 3.23 0.35 9.23:1 1000 3230
🔧 Icon.Fluent 0.23 0.03 7.67:1 5000 1151
🔧 Image.Fluent 0.09 0.07 1.29:1 5000 461
🔧 Slider.Fluent 2.29 0.3 7.63:1 1000 2293
🦄 Text.Fluent 0.05 0.18 0.28:1 5000 235
🦄 Tooltip.Fluent 0.38 17.89 0.02:1 5000 1881

🔧 Needs work     🎯 On target     🦄 Amazing

Generated by 🚫 dangerJS

@miroslavstastny
Copy link
Member

We currently do not support screener for PRs from forks 😢-> @kenotron
All work moved to #2306

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Memory leaks in FocusZone due to DOM object references not getting cleaned up

3 participants