FocusTrapZone elementToFocusOnDismiss prop should take in a function as well
Describe the feature that you would like added FocusTrapZone elementToFocusOnDismiss should take in a function that returns a HTMLElement in addition to its current functionality. Sometimes the element we want to focus on dismiss is only resolved after the render, e.g., a ref, so we don't have the element reference at the time we pass in the props into the FocusTrapZone.
What component or utility would this be added to FocusTrapZone
Have you discussed this feature with our team, and if so, who
Additional context/screenshots
Because this issue has not had activity for over 150 days, we're automatically closing it for house-keeping purposes.
Still require assistance? Please, create a new issue with up-to date details.