MatBlazor icon indicating copy to clipboard operation
MatBlazor copied to clipboard

after MatDialogService.AskAsync closes you can't scroll anymore

Open vankampenp opened this issue 4 years ago • 1 comments

Describe the bug When calling the MatDialogService.AskSync to show a popup, mdc-dialog-scroll-lock gets added to

.

When the user clicks on one of the supplied answers, the dialog closes, without removing the mdc-dialog-scroll-lock.

To Reproduce private async Task OnDelete() {

    var result = await MatDialogService.AskAsync("Are you sure?", new string[] { "Yes", "No" });
    if (result == "No") return;

    //... do the delete
}

Expected behavior The dialog should properly close, and remove the scroll lock

vankampenp avatar Mar 18 '21 21:03 vankampenp

I was trying to debug this further. mdc-dialog-scroll-lock appears in matBlazor.js. Is there a non minified source version of this somewhere?

vankampenp avatar Aug 03 '21 18:08 vankampenp