B
B
beta-it2018-05-11 11:06:08
Angular
beta-it, 2018-05-11 11:06:08

Sequentially opening material angularr dialogs, how?

Has anyone encountered the fact that when you sequentially call the material dialog boxes, the scroll is captured from the page?
And how to win it?
stackblitz.com

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-05-11
@beta-it

Replace in beforeDialog (this is in /app/dialogs/dialogs.service.ts)
return dialogRef.beforeClose();
with Otherwise
return dialogRef.afterClosed();
, the next dialog opens before the previous one is closed, respectively (as I see it, I’ll make a reservation - I’m not familiar with angular material), first, the new dialog, when opened, blocks the already blocked scroll, then the old dialog, when closed, unblocks the scroll.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question