Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ignore previousElement in wrap focus calculation.
If a consumer manually calls `.focus()`, `relatedTarget` won't be set on the focus event, which was causing problems where some people would force focus around in a modal on tab presses, only to see focus attempt to "wrap" back to the beginning of the modal from the middle of it.
- Loading branch information