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(datepicker): add 'restoreFocus' input #3539

Merged

Commits on Jan 10, 2020

  1. 'restoreFocus' will define re-focusing strategy when closing the inpu…

    …t datepicker.
    
    ```ts
    @input() restoreFocus: true | string | HTMLElement; // defaults to true
    ```
    
    By default it re-focuses element focused at the moment of datepicker opening.
    Otherwise accepts either selector or element reference.
    
    Fixes ng-bootstrap#3483
    maxokorokov committed Jan 10, 2020
    Copy the full SHA
    44955f0 View commit details
    Browse the repository at this point in the history