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

fix(FocusTrapZone): Port FocusTrapZone leak fix from Fabric #2270

Merged
merged 3 commits into from
Jan 24, 2020

Conversation

jurokapsiar
Copy link
Contributor

@jurokapsiar jurokapsiar commented Jan 24, 2020

FocusTrapZone was keeping reference to previously focused elements. This PR cleans up that reference when unmounted.

https://github.com/OfficeDev/office-ui-fabric-react/pull/11618/files

@DustyTheBot
Copy link
Collaborator

Perf comparison

Status Scenario Fluent TPI Fabric TPI Ratio Iterations Ticks
🔧 Avatar.Fluent 0.59 0.57 1.04:1 2000 1180
🔧 Button.Fluent 1.39 0.19 7.32:1 1000 1389
🔧 Checkbox.Fluent 1.44 0.37 3.89:1 1000 1437
🔧 Dialog.Fluent 0.4 0.2 2:1 5000 1978
🔧 Dropdown.Fluent 3.99 0.48 8.31:1 1000 3987
🔧 Icon.Fluent 0.27 0.03 9:1 5000 1330
🔧 Image.Fluent 0.13 0.08 1.63:1 5000 633
🔧 Slider.Fluent 1.94 0.34 5.71:1 1000 1937
🦄 Text.Fluent 0.05 0.23 0.22:1 5000 264
🦄 Tooltip.Fluent 0.36 19.06 0.02:1 5000 1813

🔧 Needs work     🎯 On target     🦄 Amazing

Generated by 🚫 dangerJS

@jurokapsiar jurokapsiar merged commit 9f69c93 into master Jan 24, 2020
@jurokapsiar jurokapsiar deleted the fix/ftz-leak branch January 24, 2020 15:02
miroslavstastny pushed a commit that referenced this pull request Jan 30, 2020
port FocusTrapZone leak fix from Fabric

(cherry picked from commit 9f69c93)
miroslavstastny pushed a commit that referenced this pull request Jan 31, 2020
port FocusTrapZone leak fix from Fabric

(cherry picked from commit 9f69c93)
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.

3 participants