From 472b3adaa3059e4c1b26b299f7051583b86a5009 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87etin?= <69278826+cetincakiroglu@users.noreply.github.com> Date: Tue, 29 Nov 2022 13:58:09 +0300 Subject: [PATCH] Fixed #12282 - Calendar | Unexpected focus happens in disabled mode --- src/app/components/calendar/calendar.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/components/calendar/calendar.ts b/src/app/components/calendar/calendar.ts index dce8b139786..98eb8424c20 100755 --- a/src/app/components/calendar/calendar.ts +++ b/src/app/components/calendar/calendar.ts @@ -1968,7 +1968,9 @@ export class Calendar implements OnInit, OnDestroy, ControlValueAccessor { if (!this.preventFocus && (!this.navigationState || !this.navigationState.button)) { setTimeout(() => { - cell.focus(); + if (!this.disabled) { + cell.focus(); + } }, 1); }