Skip to content

Commit

Permalink
Merge pull request #306 from weaseldotro/master
Browse files Browse the repository at this point in the history
fix ComposedModal body class
  • Loading branch information
metonym authored Oct 7, 2020
2 parents 8412f7e + f21afc3 commit 96ca665
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ComposedModal/ComposedModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@
if (!open) {
opened = false;
dispatch("close");
document.body.classList.add("bx--body--with-modal-open");
document.body.classList.remove("bx--body--with-modal-open");
}
} else if (open) {
opened = true;
dispatch("open");
document.body.classList.remove("bx--body--with-modal-open");
document.body.classList.add("bx--body--with-modal-open");
}
});
</script>
Expand Down

1 comment on commit 96ca665

@vercel
Copy link

@vercel vercel bot commented on 96ca665 Oct 7, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.