mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
fix ComposedModal body classes
This commit is contained in:
parent
8412f7e744
commit
99587ba16c
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue