New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EditForm and MudTextField not displaying error messages correctly in .NET 8 #8855
Comments
I get where you at. This problem appears in SSR (Server-side rendering) non-interactive mode. If you look at Route.razor, you will see that paths starting with '/Account' will be rendered as null (SSR), not InteractiveServer. |
Now from your full code I see that you are dealing with SSR(static) and this is expected. MudBlazor doesn't support this.
Can you send a link where it says that we explicitly support only InteractiveServer? We support Interactive WebAssembly and Auto. Anything that has interactivity. |
Update On this, as future investigate. TIL that you cannot nested That's why the DOM refuse, but how can Blazor do this ? And I would like to make a PR to change UPDATE: |
Thanks for the replies guys, interesting stuff. It has been a few years since I have needed to do any web / app development so I enjoy this learning process. Is the only solution to this is to not use MudBlazor on an identity page? If this isn't a Blazor issue I can gladly close this issue or have it closed for me 😄 |
I'm afraid yes. Understand, this is not MudBlazor only. Others like Radzen, Fluent UI Blazor also require Interactive |
Yes. And there are no plans to support static SSR. |
Bug type
Component
Component name
EditForm and MudTextField
What happened?
The MudTextField is not displaying validation correctly due to what appears to be the HTML being rendered in the wrong order on the page. Based on the docs, the divs are correctly nested in the paragraph element. In my .NET 8 app they are not.
Here is a screenshot of what it should look like based on the MudBlazor docs
The correct way should be as follows:
In my app:
In the app it appears to be displayed as follows:
I am using the standard mudblazor template install with .NET 8 and identity
code snippet:
Expected behavior
Expected behavior would be to correctly style the input error text. Meaning smaller and red.
Here is what it should look like:
Here is what it looks like in my app:
Reproduction link
cannot submit this
Reproduction steps
...
Relevant log output
Version (bug)
6.19.1
Version (working)
N/A
What browsers are you seeing the problem on?
Firefox, Chrome, Edge, Safari
On which operating systems are you experiencing the issue?
Windows
Pull Request
Code of Conduct
The text was updated successfully, but these errors were encountered: