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

fix(FocusZone): Fixing a core keydown disconnect issue#2056

Merged
jurokapsiar merged 3 commits intomasterfrom
fix/focuszone-eventing
Oct 24, 2019
Merged

fix(FocusZone): Fixing a core keydown disconnect issue#2056
jurokapsiar merged 3 commits intomasterfrom
fix/focuszone-eventing

Conversation

@dzearing
Copy link
Member

When you have multiple outer zones on the page, the first one hooks up a global keydown handler to manage tab presses. This is only hooked up on the first outer zone instance.

When that instance is unmounted, the event handler goes away. In normal cases, first in last out would never hit a bug. But when you have first in first out scenarios, you are left with focuszones on the page that dont get tabindex fixes on hitting tab.

This fix makes sure that the global event handler is only disconnected on the last outer zone unmount.

@jurokapsiar jurokapsiar merged commit c60f37c into master Oct 24, 2019
@jurokapsiar jurokapsiar deleted the fix/focuszone-eventing branch October 24, 2019 19:53
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.

2 participants