From 67422958c1a307d9d8142f1a93e2f53501dade62 Mon Sep 17 00:00:00 2001 From: Martin Date: Tue, 9 Jun 2020 15:42:03 +0300 Subject: [PATCH] fix(ui5-dialog): unblock body scrolling when dialog is removed from DOM (#1756) --- packages/main/src/Dialog.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/main/src/Dialog.js b/packages/main/src/Dialog.js index 3994b925160a..b6b330cf9047 100644 --- a/packages/main/src/Dialog.js +++ b/packages/main/src/Dialog.js @@ -131,6 +131,12 @@ class Dialog extends Popup { } } + onExitDOM() { + if (this.isOpen()) { + Dialog.unblockBodyScrolling(); + } + } + get isModal() { return true; }