Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

antd modal component is not showing in Blazor

$
0
0

I'm creating a modal component with antD to display some info, this component is nested in a parent component where i'm passing a value through a parameter called Visible, the first time the page renders i can open the modal but for some reason after closing the modal when clicking the button to show it again it doesn´t show, it seems that it's a problem with reactiveness of blazor or something like that but i don't really understand whats wrong with it

(parent component )

@using gluenet.Components.Pages.SensitivityAnalisysComponents@code{     private bool flowingVisible = false;     void OpenFlowingGradient()     {       flowingVisible = true;     }}<Button Icon="@IconType.Outline.Plus" OnClick="()=>OpenFlowingGradient()"/><FlowingGradientSurvey Visible="flowingVisible"/>

(child component) #inside of the folder SensitivityAnalisysComponents

@code {    [Parameter]    public bool Visible { get; set; }}<Modal    @bind-Visible="@Visible"     OkText="@("Apply")"    CancelText="@("Cancel")"     Centered="true"     MaxBodyHeight="@("80vh")"     style="width: 70vw;">    Here i put the content that i want to show...</Modal>

If someone can explain please why i'm getting this behavior it would be really helpful, because I don't simply understand


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>