-
Notifications
You must be signed in to change notification settings - Fork 12
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
Can only pass child content to razor elements if the child content is all lowercase #7203
Comments
You need to expliclty specify which RenderFragment the stuff goes inside of (you can do multiple in a panel, at whatever points you like), so something like this should work:
Does blazor do that implicitly if it's just ChildContent? im not even sure how that would work |
I'm not sure about Blazor - but if it works all lowercased without nesting in tags, shouldn't it just work for upper cased as well? It's incredibly common to slot children in like how I have above in web frameworks, without having to specify some child tag. |
https://blazor-university.com/templating-components-with-renderfragements/ This seems to imply you only need ChildContent if there is more than one RenderFragment being used on a component. |
Describe the bug
It's impossible to pass a razor element as ChildContent for another custom razor element (non-builtin) as far as I can tell.
To Reproduce
See above!
Expected behavior
We should be able to pass custom panels as children into custom panels. It is very common practice in web development.
Media/Files
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: