-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
DoneThis issue has been fixedThis issue has been fixedarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.
Milestone
Description
-
Create a new Razor Components app
-
Add a parameter to the
Counter
component with a default value of 1[Parameter] int IncrementAmount { get; set; } = 1; void IncrementCount() { currentCount+=IncrementAmount; }
-
Run the app and try the Counter on the Counter page
Expected result:
- Counter increments
Actual result:
- Counter doesn't increment - stays at zero
- The IncrementAmount parameter was overwritten to zero
Metadata
Metadata
Assignees
Labels
DoneThis issue has been fixedThis issue has been fixedarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.