[PR #2334] Fix for Dialog autofocus for HTMLEditors wrapped in RadzenFormField with Tabindex correct #3201

Closed
opened 2026-01-29 18:22:24 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/radzenhq/radzen-blazor/pull/2334

State: closed
Merged: Yes


In my previous commit I made a mistake that would completely ignore the TabIndex being set to -1 and still let those through

If a Dialog had an HTMLEditor which was wrapped inside of a RadzenFormField it would always get focused no matter where it is breaking the Autofocus of the first Element.

This was the razor code causing this issue and it would only focus on the HTMLEditor:

<RadzenFormField Text="TextBox">
  <RadzenTextBox />
</RadzenFormField>
<RadzenFormField Text="Html">
  <RadzenHtmlEditor />
</RadzenFormField>
image image

This change should fix this and keep the functionality as intended

**Original Pull Request:** https://github.com/radzenhq/radzen-blazor/pull/2334 **State:** closed **Merged:** Yes --- **In my previous commit I made a mistake that would completely ignore the TabIndex being set to -1 and still let those through** If a Dialog had an HTMLEditor which was wrapped inside of a RadzenFormField it would always get focused no matter where it is breaking the Autofocus of the first Element. This was the razor code causing this issue and it would only focus on the HTMLEditor: ``` <RadzenFormField Text="TextBox"> <RadzenTextBox /> </RadzenFormField> <RadzenFormField Text="Html"> <RadzenHtmlEditor /> </RadzenFormField> ``` <img width="690" height="376" alt="image" src="https://github.com/user-attachments/assets/f7c35fca-b932-481c-b9ad-a12a5cd2bd94" /> <img width="690" height="326" alt="image" src="https://github.com/user-attachments/assets/5cdc4e0d-3573-45a4-9a01-d8d49d0a73cf" /> This change should fix this and keep the functionality as intended
claunia added the pull-request label 2026-01-29 18:22:24 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#3201