Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dialog): don't move focus to dialog container if focus is already…
… inside the dialog (#16297) This is a follow-up to #16221. What we hadn't accounted for in the aforementioned PR is that the consumer may have turned off `autoFocus` so that they can handle it themselves and with our changes focus would be reset back to the container. These changes add an extra check which will ensure that focus is only moved if it's not inside the dialog already.
- Loading branch information