Reselect element with focus when datepicker closes

This is request for change.


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:

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


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)=""/>

    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