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

fix(datepicker): inconsistent focus restoration timing in touchUi mode #17732

Merged

Commits on Mar 6, 2020

  1. fix(datepicker): inconsistent focus restoration timing in touchUi mode

    `MatDatepicker` has focus restoration which happens (almost) synchronously, whereas `MatDialog` restores focus asynchronously when the animation is finished. This means that in `touchUi` mode focus ends up being restored both by the datepicker and the dialog within a 150ms window. The problem is that if the consumer of `MatDatepicker` decides to move focus inside the `closed` event, it'll be ovewritten by the dialog 150ms later. These changes disable the dialog's focus restoration because it's unnecessary.
    
    Fixes angular#17560.
    crisbeto committed Mar 6, 2020
    Configuration menu
    Copy the full SHA
    a91d84d View commit details
    Browse the repository at this point in the history