You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…hen stacked modals are closed
When there are at least two `Modal`s stacked and one closes the `ModalManager` will trigger a
callback to set a flag which is passed to the `FocusTrap` via `ModalContext` and triggers
refocussing of an element within the top most `Modal`
fix#4502
## [100.1.0](v100.0.0...v100.1.0) (2021-11-18)
### Features
* **focus-trap:** add flag to trigger refocus of either last focused element first element ([5ae3922](5ae3922))
### Bug Fixes
* **modal, modal-manager:** modal and manager now set a refocus flag when stacked modals are closed ([5b9c5f7](5b9c5f7)), closes [#4502](#4502)
Current behaviour
When using a Dialog/Confirm component inside a parent Dialog, tab behaviour is as follows:
tab.focus.behaviour.mov
Expected behaviour
Tab focus is expected to be set back inside parent Dialog when child Dialog/Confirm component closes
CodeSandbox or Storybook URL
https://codesandbox.io/s/great-fast-e7of6?file=/src/index.js
JIRA Ticket (Sage Only)
SBS-20824
Suggested Solution
No response
Carbon Version
91.0.2
What browsers are you seeing the problem on?
Chrome
What Operating System are you seeing the problem on?
MacOS
Anything else we should know?
No response
Confidentiality
The text was updated successfully, but these errors were encountered: