Hi, I created a razor component with a Dialog inside as shown in the example
<SfDialog @bind-Visible = "@IsDialogVisible"
ResizeHandles = "@dialogResizeDirections"
Height = @MaxHeight
Width = "900"
AllowDragging = "true"
CloseOnEscape = "false"
EnableResize = "true"
ShowCloseIcon = "false"
IsModal = "true">
<DialogPositionData X = "center" Y = "center"> </DialogPositionData>
<DialogEvents OnOpen = "@ OnOpenHandler" OnOverlayClick = "@ OnCloseDialog"> </DialogEvents>
<DialogTemplates>
<Header>
Header Dialog
</Header>
<Content>
.... some content
</Content>
</DialogTemplates>
<DialogButtons>
<DialogButton Content = "Save" IconCss = "fas fa-save" OnClick = "OnSaveChanges" IsPrimary = "true"> </DialogButton>
<DialogButton Content = "Close" OnClick = "OnCloseDialog"> </DialogButton>
</DialogButtons>
</SfDialog>
What is happening is that the dialog is not always visible, even if you see that it has started because being modal the rest is disabled.
The problem also occurs with other Dialogs and I think I have identified the problem in the condition of Modal. In fact, if I set IsModal = "false" the problem never occurs.
Looking forward to a kind reply
Greetings
hi, I think I have identified the problem.
In the management of the events I changed the size of the dialog in the OnOpenHandler and this could cause some problems. I used the Created event and the problem seems solved.
Greetings