Commit 3ea16e49 authored by Дмитрий Малюгин's avatar Дмитрий Малюгин 🕓
Browse files

fix: Modal

parent 9ee6a6a6
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
{
  "name": "@d.malygin/UI_storybook",
  "version": "1.0.14",
  "version": "1.0.15",
  "type": "module",
  "scripts": {
    "dev": "vite",
+2 −2
Original line number Diff line number Diff line
@@ -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');
  }