How to force Blazor to re-render a component
Usually, you force a re-render by calling the StateHasChanged
method.
For this app to work, you should place StateHasChanged();
at the end of the BarCallback method.
Hope this helps.
Just remove disabled
from input control and it will work. Change:
<input type="checkbox" disabled @bind="isGranted" />
by:
<input type="checkbox" @bind="isGranted" />
See your code working at blazorfiddle