Reselect element with focus when datepicker closes

This is request for change.

When:

This would allow users to quickly reselect value in the case of e.g. minor error that could be quickly corrected
.
Other reference implementation supporting this behaviour:
https://material.angular.io/components/datepicker/overview
https://clarity.design/documentation/datepicker#examples

This would be non breaking change (unless some tests rely on keyboard navigation with presumed current focus behaviour).

Thanks!

NgBootstrap: 5.1

1 possible answer(s) on “Reselect element with focus when datepicker closes

  1. Hi. This change breaks the usage of opening the datepicker via

    <input (focus)="Datepicker.open()"/>

    When the datepicker is dismissed by clicking somewhere else, the input gets focussed again and reopens the datepicker, therefore it will never close again.

    @maxokorokov unless there is another way of opening the datepicker on focus, this seems to be a bug for me