@cloudparker/moldex.js 0.0.120 → 0.0.121
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -103,6 +103,7 @@ export function toggleDialog() {
|
|
|
103
103
|
}
|
|
104
104
|
export function openDialog() {
|
|
105
105
|
isPlaced = true;
|
|
106
|
+
document.body.style.overflow = "hidden";
|
|
106
107
|
setTimeout(() => {
|
|
107
108
|
isOpened = true;
|
|
108
109
|
}, 0);
|
|
@@ -110,6 +111,7 @@ export function openDialog() {
|
|
|
110
111
|
export function closeDialog(value) {
|
|
111
112
|
return new Promise((resolve) => {
|
|
112
113
|
isOpened = false;
|
|
114
|
+
document.body.style.overflow = "";
|
|
113
115
|
setTimeout(() => {
|
|
114
116
|
isPlaced = false;
|
|
115
117
|
onClose && onClose();
|