From 30915eeb5df6f0644c2613d83ad635218aae6294 Mon Sep 17 00:00:00 2001 From: Maxuel Junior Date: Wed, 24 Jun 2026 08:56:04 -0300 Subject: [PATCH 1/2] Fixed an issue in MonthView where clicking on an appointment would, for some reason redirect the user to a different location, breaking the FocusAsync of contentView --- Radzen.Blazor/Rendering/MonthView.razor | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Radzen.Blazor/Rendering/MonthView.razor b/Radzen.Blazor/Rendering/MonthView.razor index e706883aa..9c2206d0d 100644 --- a/Radzen.Blazor/Rendering/MonthView.razor +++ b/Radzen.Blazor/Rendering/MonthView.razor @@ -326,7 +326,12 @@ if (Scheduler != null) { await Scheduler.SelectAppointment(data); - await contentView.FocusAsync(); + + try + { + await contentView.FocusAsync(); + } + catch (JSException) {} } } From 1f7e6de6df67aeee06796cf7b0dab566b559612c Mon Sep 17 00:00:00 2001 From: Maxuel Junior Date: Wed, 24 Jun 2026 16:38:04 -0300 Subject: [PATCH 2/2] fixed when FormField start with Visible equals false --- Radzen.Blazor/wwwroot/Radzen.Blazor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Radzen.Blazor/wwwroot/Radzen.Blazor.js b/Radzen.Blazor/wwwroot/Radzen.Blazor.js index f3cbb9a51..63f54db94 100644 --- a/Radzen.Blazor/wwwroot/Radzen.Blazor.js +++ b/Radzen.Blazor/wwwroot/Radzen.Blazor.js @@ -6239,7 +6239,7 @@ Radzen.scrollElementTo = (scrollable, left, top) => { scrollable.scrollTo({ top: top, left: left }); }; Radzen.createFormField = function(el) { - if (!el) return null; + if (!el || typeof el.addEventListener !== 'function') return null; function onFocusIn() { el.classList.add('rz-state-focused'); } function onFocusOut() { el.classList.remove('rz-state-focused'); } el.addEventListener('focusin', onFocusIn);