I've encountered an issue with how focus is handled in dialogs. From what I understand, the dialog should automatically focus the first focusable element, which works as expected in some cases, but not in others.
For example, with this setup:
<RadzenTextBox />
<RadzenHtmlEditor />
The focus correctly goes to the RadzenTextBox when the dialog opens.
However, when wrapping the components in RadzenFormField like so:
The dialog consistently focuses the RadzenHtmlEditor, even if it appears after the RadzenTextBox. This behavior isn't ideal, as it should prioritize the first focusable element regardless of layout wrappers.
Is there any chance this could be addressed in a future update?
I'm still new to Blazor and not quite ready to submit pull requests myself, but I wanted to bring this to your attention.
Thanks for your time and for all your work on Radzen!
It also seems like if there are multiple components before the HtmlEditor and one of the components before the HtmlEditor is focused that on pressing enter it instantly jumps to the HtmlEditor instead of to the next component
Yes. It works fine if you only use the TextBox and the HtmlEditor, but if you wrap both in a FormField like in my example it doesn't do what is expected.
Here is an example on your Demo Page which does only focus the HtmlEditor:
Hello.
This seems to still be an issue in the newest version of Radzen and still exists on the Demo Page with the example given.
Are there maybe any updates on this?
I tried and I am not at the level of being able to fix that issue yet.
Maybe someone else could figure it out if they want to, but I haven’t been able to wrap my head around it.
For now I just have to work around it somehow.
Thank you though.
And thank you if there is someone out there smarter than me being able to fix it
Who knew sleeping on it would help me figure it out finally.
I created a pull request.
I’ll temporarily add that fix to my project till this has been approved.
Thank you and I’ll patiently wait for your approval