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

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

Merged
merged 3 commits into from
Oct 24, 2019

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.

None yet

2 participants