fix ComposedModal body classes

This commit is contained in:
weaseldotro 2020-10-07 16:47:29 +03:00 committed by GitHub
commit 99587ba16c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -90,12 +90,12 @@
if (!open) { if (!open) {
opened = false; opened = false;
dispatch("close"); dispatch("close");
document.body.classList.add("bx--body--with-modal-open"); document.body.classList.remove("bx--body--with-modal-open");
} }
} else if (open) { } else if (open) {
opened = true; opened = true;
dispatch("open"); dispatch("open");
document.body.classList.remove("bx--body--with-modal-open"); document.body.classList.add("bx--body--with-modal-open");
} }
}); });
</script> </script>