Skip to content

Commit

Permalink
fix(datepicker): Maintain selected date when same date selected (#5209)…
Browse files Browse the repository at this point in the history
… (#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>
  • Loading branch information
3 people committed Jan 11, 2020
1 parent 3078f07 commit b674b4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datepicker/bs-datepicker.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class BsDatepickerDirective implements OnInit, OnDestroy, OnChanges {
*/
@Input()
set bsValue(value: Date) {
if (this._bsValue === value) {
if (this._bsValue && this._bsValue.getTime() === value.getTime()) {
return;
}
this._bsValue = value;
Expand Down

0 comments on commit b674b4b

Please sign in to comment.