I created a Blazor project and in App.razor I have this line:
<FocusOnNavigate RouteData="@routeData" Selector="input" />
FocusOnNavigate sets focus on the first input after navigating. This works fine, but I noticed that with tab you can focus to the next element, but getting the focus back on that element is not possible. This is because the input has tabindex="-1" now.
Why is a tabindex added? Is there a way to avoid this?
Update: I tried the autofocus attribute on an input without using FocusOnNavigate, but that doesn't work