diff --git a/projects/demo/src/modules/components/calendar-range/index.ts b/projects/demo/src/modules/components/calendar-range/index.ts index 0f08edaad04f..baf9810875e6 100644 --- a/projects/demo/src/modules/components/calendar-range/index.ts +++ b/projects/demo/src/modules/components/calendar-range/index.ts @@ -47,6 +47,7 @@ export default class Example { new TuiDay(2018, 9, 30), new TuiDay(2020, 2, 5), new TuiDay(2300, 0, 1), + TuiDay.currentLocal(), ]; protected readonly disabledItemHandlerVariants: ReadonlyArray< diff --git a/projects/demo/src/modules/components/input-date-range/index.ts b/projects/demo/src/modules/components/input-date-range/index.ts index d59afbf08a95..40cf2146542b 100644 --- a/projects/demo/src/modules/components/input-date-range/index.ts +++ b/projects/demo/src/modules/components/input-date-range/index.ts @@ -57,6 +57,7 @@ export default class PageComponent extends AbstractExampleTuiControl { new TuiDay(2017, 11, 11), new TuiDay(new Date().getFullYear() + 3, 1, 1), TUI_LAST_DAY, + TuiDay.currentLocal(), ]; protected min: TuiDay = this.dayVariants[0]!; @@ -65,7 +66,7 @@ export default class PageComponent extends AbstractExampleTuiControl { protected minLength: TuiDayLike | null = null; - protected max = this.dayVariants[this.dayVariants.length - 1]!; + protected max = this.dayVariants[this.dayVariants.length - 2]!; protected readonly markerHandlerVariants: readonly TuiMarkerHandler[] = [ (day: TuiDay) => (day.day % 2 === 0 ? TWO_DOTS : ONE_DOT),