[Bug] .Net 8 Blazored Auto rendering #568
Labels
Bug
Something isn't working
Needs: Design
The issues needs design work before implementing
Needs: Investigation
The issues needs investigation before implementing
Description
Blazored Modal problems with the following configuration - Interactive render mode: Auto, Interactivity location: Per page/component in .Net 8
To Reproduce
Create a new project with the following configuration, add Blazored Modal and try to get it working on the client components.
Expected behavior
Blazored Modal working with Blazor
Auto
rendering mode.Additional context
If you set interactive mode to
Auto
where rendering happens on both the server and the client, then the modal is not working. I believe this is due to the fact that theCascadingBlazoredModal
is rendered on the server when encapsulating theRoutes
component. This leaves the client without theCascadingBlazoredModal
. I can't find anywhere else where I can wrap theCascadingBlazoredModal
to make it cascade to all client components.I've managed a workaround where I've disabled pre-rendering and moved the
Routes
component to the client, but this has in effect removed theAuto
settings and changed it toWebAssembly
.Is there a way to have this working without moving to
WebAssembly
only?The text was updated successfully, but these errors were encountered: