Merge pull request #306 from weaseldotro/master

fix ComposedModal body class
This commit is contained in:
Eric Liu 2020-10-07 09:35:34 -07:00 committed by GitHub
commit 96ca6652d1
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>