From 12e4dbd2b43e6cd4c10e6865bfcced2b85746852 Mon Sep 17 00:00:00 2001 From: Vladimir Potekhin <46284632+vladimirpotekhin@users.noreply.github.com> Date: Mon, 1 Apr 2024 18:32:00 +0300 Subject: [PATCH] fix(kit): `InputDate` fix opening mobile calendar in read-only mode (#7145) --- .../kit/components/input-date/input-date.component.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/projects/kit/components/input-date/input-date.component.ts b/projects/kit/components/input-date/input-date.component.ts index 6006cf285c6c..b2f920e41e54 100644 --- a/projects/kit/components/input-date/input-date.component.ts +++ b/projects/kit/components/input-date/input-date.component.ts @@ -255,17 +255,8 @@ export class TuiInputDateComponent return this.activeItem ? '' : filler; } - // noinspection JSUnusedGlobalSymbols - /** - * TODO: Remove in 4.0 - * @deprecated: use {@link onIconClick} instead - */ - protected onMobileClick(): void { - this.onIconClick(); - } - protected onIconClick(): void { - if (!this.computedMobile || !this.mobileCalendar) { + if (!this.computedMobile || !this.mobileCalendar || this.readOnly) { return; }