Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(multiple): add options to autoFocus field for dialogs #22780

Merged
merged 1 commit into from Jul 30, 2021

Commits on Jul 28, 2021

  1. feat(multiple): add options to autoFocus field for dialogs

    Before this PR, autoFocus was a boolean that allowed users to specify whether the container element or the first tabbable element is focused on dialog open. Now you can also specify focusing the first header element or use a CSS selector and focus the first element that matches that. If these elements can't be focused, then the container element is focused by default.
    
    This applies to other components that are similar to dialog and also have a autoFocus field.
    
    Fixes angular#22678
    amysorto committed Jul 28, 2021
    Copy the full SHA
    2e7b61b View commit details
    Browse the repository at this point in the history