MudTextField with focus and invalid input initially prevents navigation via a link
Before reporting
- I searched existing issues
- I tried in private/incognito browser
What went wrong?
I have a contact form page that auto focuses on the first field (which is required and has validation). Once on the contact page, if you click on a link somewhere without doing anything else then the field shows an error as expected but the link navigation is cancelled. If you first click off the field so the error shows then the link works fine. It seems that the validation is preventing the link behaviour. In the reproduction snippet, just click on the Click me link (the field should receive focus straight away as it has AutoFocus). This is an issue on 8.15.0 as well as on 9.0.0 and I've verified it happens on Edge, Chrome, and Firefox.
Reproduction link
https://try.mudblazor.com/snippet/waQAaGGzHpSfUXtB
Reproduction steps
1.Run the snippet (the text field should receive focus). 2.Click on the Click me link.
Version (bug)
v9.0.0
Version (working)
No response
Environment
Edge
Blazor rendering mode
Server
Source: MudBlazor/MudBlazor