Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle entering FocusWrap from outside
When FocusWrap was used, but the previous focus was outside of the wrapped element, the browser would try to focus the boundary element, causing us to focus the last element instead. This is fixed by checking the relatedTarget of the event, and specially handling focus coming from outside. Fixes #3636.
- Loading branch information