-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Description
Bug Report
- Package version(s):
- office-ui-fabric-react: "5.49.3"
- react: "15.4.2"
Priorities and help requested (not applicable if asking question):
Are you willing to submit a PR to fix? No
Requested priority: High
Products/sites affected:
- SP Home Search (Modal used for the preview that appears when clicking on a office file result)
Describe the issue:
I have a Modal with various click-targets inside it. With keyboard navigation I can tab between the different click/tab-targets. In the modal I also have an iframe, but this will not be included in the tab-order by default. If I set tabindex=”0” on the iframe, the iframe will be included in the tab-order. BUT this will break the FocusTrap on the Modal to also include tab targets in the browsers command bar. So, I can tab into the iframe and reach the tab targets there, but when tabbing out of the iframe the first tab-stop will be in the browser command-bar (“Tabs you’ve set aside” for Edge). This only happens if the iframe is the last tab-target in the Modal. If there are tab-targets after the iframe, the tabbing works fine and wraps around inside the modal.
Actual behavior:
Tabbing inside a Modal with an iframe as the last element will also include tab-targets of the browser command bar.
Expected behavior:
Tabbing in a Modal should only cycle between tab-targets inside the Modal (even with an iframe at the end)