Skip to content

Commit

Permalink
chore(kit): drop legacy hack for InputDateRange
Browse files Browse the repository at this point in the history
  • Loading branch information
nsbarsukov committed Feb 5, 2024
1 parent ed9d2ca commit b064e09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,6 @@ export class TuiInputDateTimeComponent
return tuiDay;
}

return [tuiDay, tuiTime];
return value as [TuiDay, TuiTime];
}
}

0 comments on commit b064e09

Please sign in to comment.