You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to display 'Today' string instead of the date, when current date is selected.
I am using value property to display either 'Today' if current date is selected or display date if any other date is selected other than current date.
When you select current date the first time, the value in the input box updates to 'Today' which is expected. However if you re-select current date again, it doesn't display 'Today' but instead just displays the date. Please see the StackBlitz example below to reproduce the issue.
Expected:
Datepicker input should update value when same date is selected again.
Plunker/StackBlitz that reproduces the issue:
Using Plunkr, StackBlitz is the best way to show your issue. Issues without link to an example of reproduction might be closed.
… (#5496)
fix(datepicker): Maintain selected date when same date selected (#5209) (#5496)
Co-authored-by: Vitaliy Makogon <mvitaliyd@gmail.com>
Co-authored-by: Dmitriy Danilov <daniloff200@gmail.com>
Bug description or feature request:
I want to display 'Today' string instead of the date, when current date is selected.
I am using value property to display either 'Today' if current date is selected or display date if any other date is selected other than current date.
When you select current date the first time, the value in the input box updates to 'Today' which is expected. However if you re-select current date again, it doesn't display 'Today' but instead just displays the date. Please see the StackBlitz example below to reproduce the issue.
Expected:
Datepicker input should update value when same date is selected again.
Plunker/StackBlitz that reproduces the issue:
Using Plunkr, StackBlitz is the best way to show your issue. Issues without link to an example of reproduction might be closed.
You can use one of starter templates:
StackBlitz: https://stackblitz.com/edit/ngx-bootstrap-datepicker-mbae2d?file=app%2Fapp.component.ts
Versions of ngx-bootstrap, Angular, and Bootstrap:
ngx-bootstrap:
Angular: 5
Bootstrap: 3.3.7
Build system: Angular CLI, System.js, webpack, starter seed:
The text was updated successfully, but these errors were encountered: