Closed Kbarude closed 10 months ago
Blazor Web assembly --> package : z.Blazor.Diagram
@if(ShowComponent){ //Load table }
@code{ public bool ShowComponent { get; set; } diagram.MouseClick += MouseClickEvent; private void MouseClickEvent(Model sender,MouseEventArgs e) { ShowComponent=true; } }
mouse click event is working and showcomponent property is setting to true, but this property change is not render on DOM, any variables inside the mouseclick is not render on DOM. What is the wrong in this code, please let me know
Hi, try adding InvokeAsync(StateHasChanged); after ShowComponent=true;.
InvokeAsync(StateHasChanged);
ShowComponent=true;
Blazor Web assembly --> package : z.Blazor.Diagram
@if(ShowComponent){ //Load table }
@code{ public bool ShowComponent { get; set; } diagram.MouseClick += MouseClickEvent; private void MouseClickEvent(Model sender,MouseEventArgs e) { ShowComponent=true; } }
mouse click event is working and showcomponent property is setting to true, but this property change is not render on DOM, any variables inside the mouseclick is not render on DOM. What is the wrong in this code, please let me know