diff --git a/projects/kit/components/calendar-range/calendar-range.component.ts b/projects/kit/components/calendar-range/calendar-range.component.ts index 33b51aa910e4..6c729d8ccc53 100644 --- a/projects/kit/components/calendar-range/calendar-range.component.ts +++ b/projects/kit/components/calendar-range/calendar-range.component.ts @@ -256,8 +256,7 @@ export class TuiCalendarRangeComponent private get activePeriod(): TuiDayRangePeriod | null { return ( - this.item ?? - (this.items.find(item => + this.items.find(item => tuiNullableSame( this.value, item.range, @@ -265,8 +264,7 @@ export class TuiCalendarRangeComponent a.from.daySame(b.from.dayLimit(this.min, this.max)) && a.to.daySame(b.to.dayLimit(this.min, this.max)), ), - ) || - null) + ) || null ); }