Skip to content

Subclassing of Form components doesn't work well #8192

Closed
@rynowak

Description

@rynowak

I tried subclassing EditNumber to implement something similar to this

It doesn't work because the genered code from a razor file calls base.BuildRenderTree - you get the rendering of the base class and what you wrote.

image

We should be able to fix this by making it unnecessary for a component to call base.BuildRenderTree. In general, it's a good idea if we can avoid extensibility points where an inheritor has to call base

Metadata

Metadata

Labels

DoneThis issue has been fixedarea-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions