Hi Glen Wilkin
Greeting from Syncfusion support!
Thank you for bringing this issue to our attention, and we appreciate your patience. After further validation, we have determined that the behavior you observed is not a bug at the component level. The issue arises when opening another dialog without properly closing the previous dialog, leading to incorrect positioning.
To resolve this issue and ensure proper positioning, we recommend adding a slight delay before opening the next dialog. This delay allows the previous dialog to close effectively, preventing conflicts when opening subsequent dialogs.
Here is a sample code snippet demonstrating this approach:
<div id="predefinedDialogDefault"> <SfButton CssClass="e-success" @onclick="@ConfirmBtn">Confirm</SfButton> <span class="status"> @DialogStatus </span> </div> @code { private string DialogStatus { get; set; } private async Task ConfirmBtn() { this.DialogStatus = " "; bool isConfirm = await DialogService.ConfirmAsync("Are you sure you want to permanently delete these items?", "Delete Multiple Items"); string confirmMessage = isConfirm ? "confirmed" : "canceled"; if (isConfirm) { await Task.Delay(5); await DialogService.PromptAsync("Enter your name:", "Join Chat Group"); } else { await Task.Delay(5); await DialogService.AlertAsync("10% of battery remaining", "Low Battery"); } this.DialogStatus = $"The user {confirmMessage} the dialog box."; } } |
If you have any further questions or concerns, please feel free to reach out.
Regards,
Kokila Poovendran.