From 49e6944cb2e52e4825b4c3efef6c34b682696e88 Mon Sep 17 00:00:00 2001 From: Maksim Ivanov Date: Thu, 28 Mar 2024 18:18:10 +0300 Subject: [PATCH] fix(kit): correct update model for `tui-input-date-multi` (#7080) --- .../input-date-multi/input-date-multi.component.ts | 6 +----- .../input-date-multi/input-date-multi.template.html | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/projects/kit/components/input-date-multi/input-date-multi.component.ts b/projects/kit/components/input-date-multi/input-date-multi.component.ts index c31793b45df7..f7d4b6b3fc87 100644 --- a/projects/kit/components/input-date-multi/input-date-multi.component.ts +++ b/projects/kit/components/input-date-multi/input-date-multi.component.ts @@ -106,10 +106,6 @@ export class TuiInputDateMultiComponent @Input() inputHidden = false; - @Input() - @HostBinding('class._editable') - editable = true; - @Input() search: string | null = ''; @@ -203,7 +199,7 @@ export class TuiInputDateMultiComponent } get nativeDropdownMode(): boolean { - return this.isMobile && !this.editable; + return this.isMobile; } get computedMin(): TuiDay { diff --git a/projects/kit/components/input-date-multi/input-date-multi.template.html b/projects/kit/components/input-date-multi/input-date-multi.template.html index 02732592d689..4b03152a01b6 100644 --- a/projects/kit/components/input-date-multi/input-date-multi.template.html +++ b/projects/kit/components/input-date-multi/input-date-multi.template.html @@ -10,7 +10,7 @@ class="t-input" [disabled]="disabled" [disabledItemHandler]="disabledItemHandler | tuiMapper: disabledItemHandlerWrapper" - [editable]="editable" + [editable]="false" [expandable]="expandable" [inputHidden]="inputHidden" [maskito]="maskitoOptions"