Skip to content

Commit

Permalink
fix(kit): CalendarRange click again on selected item not switch to it…
Browse files Browse the repository at this point in the history
…em date (#8843)
  • Loading branch information
mohan-mu authored Sep 10, 2024
1 parent fdacda3 commit 4853671
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export class TuiCalendarRange implements OnInit, OnChanges {
?.pipe(tuiWatch(inject(ChangeDetectorRef)), takeUntilDestroyed())
.subscribe((value) => {
this.value = value;
this.initDefaultViewedMonth();
});
}

Expand Down Expand Up @@ -183,6 +184,8 @@ export class TuiCalendarRange implements OnInit, OnChanges {
this.updateValue(null);
this.itemChange.emit(null);
}

this.initDefaultViewedMonth();
}

protected onMonthChange(month: TuiMonth): void {
Expand Down

0 comments on commit 4853671

Please sign in to comment.