Dialog does not close #115

Closed
opened 2026-01-29 17:31:48 +00:00 by claunia · 1 comment
Owner

Originally created by @OndrejUzovic on GitHub (Jun 8, 2021).

If the second dialog is open after the first dialog is closed, then the second dialog will not close.

Here is the simple code to reproduce the problem:

@page "/"
@inject DialogService DialogService

<div class="row">
    <div class="col-xl-6">
        <h3 style="margin-top: 20px;">Confirm Dialog</h3>
        <RadzenButton Text="Show confirm dialog" Click="@OnClick" />
    </div>
</div>

@code {
    private async Task OnClick(MouseEventArgs args)
    {
        // Open the first dialog.
        await DialogService.Confirm("Are you sure 1?", "MyTitle 1", new ConfirmOptions() { OkButtonText = "Yes", CancelButtonText = "No" });

        // Open the second dialog.
        await DialogService.Confirm("Are you sure 2?", "MyTitle 2", new ConfirmOptions() { OkButtonText = "Yes", CancelButtonText = "No" });
    }
}

Please would it be possible to investigate this issue or provide an advice how to overcome it?

Originally created by @OndrejUzovic on GitHub (Jun 8, 2021). If the second dialog is open after the first dialog is closed, then the second dialog will not close. Here is the simple code to reproduce the problem: ``` @page "/" @inject DialogService DialogService <div class="row"> <div class="col-xl-6"> <h3 style="margin-top: 20px;">Confirm Dialog</h3> <RadzenButton Text="Show confirm dialog" Click="@OnClick" /> </div> </div> @code { private async Task OnClick(MouseEventArgs args) { // Open the first dialog. await DialogService.Confirm("Are you sure 1?", "MyTitle 1", new ConfirmOptions() { OkButtonText = "Yes", CancelButtonText = "No" }); // Open the second dialog. await DialogService.Confirm("Are you sure 2?", "MyTitle 2", new ConfirmOptions() { OkButtonText = "Yes", CancelButtonText = "No" }); } } ``` Please would it be possible to investigate this issue or provide an advice how to overcome it?
Author
Owner

@OndrejUzovic commented on GitHub (Jun 8, 2021):

It seems the issue is already fixed. When I updated from 3.3.2 to 3.5.0 it works fine.

@OndrejUzovic commented on GitHub (Jun 8, 2021): It seems the issue is already fixed. When I updated from 3.3.2 to 3.5.0 it works fine.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#115