Skip to content
Snippets Groups Projects
Commit 3ea16e49 authored by Дмитрий Малюгин's avatar Дмитрий Малюгин :clock4:
Browse files

fix: Modal

parent 9ee6a6a6
No related branches found
No related tags found
No related merge requests found
Pipeline #21145 passed
{
"name": "@d.malygin/UI_storybook",
"version": "1.0.14",
"version": "1.0.15",
"type": "module",
"scripts": {
"dev": "vite",
......
......@@ -28,11 +28,11 @@ const visible = defineModel('visible');
watch(visible, () => {
if (visible.value) {
(window as CustomWindow).blockPopupActions = true;
body.style.overflow = 'hidden';
body.style.overflowY = 'hidden';
body.style.paddingRight = props.paddingRightOnActive;
} else {
(window as CustomWindow).blockPopupActions = false;
body.style.overflow = 'auto';
body.style.overflowY = 'auto';
body.style.paddingRight = '0';
emit('onClose');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment