Skip to content

Commit

Permalink
chore(kit): test
Browse files Browse the repository at this point in the history
  • Loading branch information
mdlufy committed Jun 26, 2024
1 parent 90dab4e commit 319da12
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ export class TuiInputDateRangeExample5 {
'Today',
({$implicit}) => `Today (${$implicit.from})`,
),
new TuiDayRangePeriod(
new TuiDayRange(today, today),
'Today2',
({$implicit}) => `Today2 (${$implicit.from})`,
),
new TuiDayRangePeriod(
new TuiDayRange(yesterday, yesterday),
'Yesterday',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export class TuiInputDateRangeComponent
@Self()
@Inject(NgControl)
control: NgControl | null,
@Inject(ChangeDetectorRef) cdr: ChangeDetectorRef,
@Inject(ChangeDetectorRef) protected override readonly cdr: ChangeDetectorRef,
@Inject(TUI_IS_MOBILE) private readonly isMobile: boolean,
@Optional()
@Inject(TUI_MOBILE_CALENDAR)
Expand Down Expand Up @@ -178,7 +178,8 @@ export class TuiInputDateRangeComponent
ngAfterViewChecked(): void {
if (this.calendarRange) {
this.calendarRange.selectedActivePeriod = this.selectedActivePeriod;
this.calendarRange.checkUpdate();
this.cdr.detectChanges();
// this.calendarRange.checkUpdate();
}
}

Expand Down

0 comments on commit 319da12

Please sign in to comment.