From b064e090c8322a68d615832ac2be68f403831bfa Mon Sep 17 00:00:00 2001 From: Nikita Barsukov Date: Thu, 1 Feb 2024 17:59:19 +0300 Subject: [PATCH] chore(kit): drop legacy hack for `InputDateRange` --- .../input-date-range/input-date-range.component.ts | 10 +--------- .../input-date-time/input-date-time.component.ts | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/projects/kit/components/input-date-range/input-date-range.component.ts b/projects/kit/components/input-date-range/input-date-range.component.ts index 8ad3535b558c..01c201b89f99 100644 --- a/projects/kit/components/input-date-range/input-date-range.component.ts +++ b/projects/kit/components/input-date-range/input-date-range.component.ts @@ -191,15 +191,7 @@ export class TuiInputDateRangeComponent } get computedMask(): MaskitoOptions { - /** - * TODO: we can delete this workaround in v4.0 - * after solving this issue: - * https://github.com/taiga-family/maskito/issues/604 - */ - const nativeValueIsNotSynced = - this.textfield?.nativeFocusableElement?.value !== this.computedValue; - - return this.activePeriod || nativeValueIsNotSynced + return this.activePeriod ? MASKITO_DEFAULT_OPTIONS : this.calculateMask( this.dateFormat, diff --git a/projects/kit/components/input-date-time/input-date-time.component.ts b/projects/kit/components/input-date-time/input-date-time.component.ts index c4116e88acb0..11d0993ed33f 100644 --- a/projects/kit/components/input-date-time/input-date-time.component.ts +++ b/projects/kit/components/input-date-time/input-date-time.component.ts @@ -435,6 +435,6 @@ export class TuiInputDateTimeComponent return tuiDay; } - return [tuiDay, tuiTime]; + return value as [TuiDay, TuiTime]; } }