MatBlazor
MatBlazor copied to clipboard
after MatDialogService.AskAsync closes you can't scroll anymore
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
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?