fix(components): replace initialization of components to prevent overrides
This commit is contained in:
parent
37a1551699
commit
8cbd097389
4 changed files with 6 additions and 6 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { qs, qsa } from "../utils";
|
||||
|
||||
window.onload = () => {
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
qsa(".msp-offcanvas-toggle").forEach((item) => {
|
||||
item.addEventListener("click", () => {
|
||||
const target = item.dataset.mspTarget;
|
||||
|
|
@ -18,4 +18,4 @@ window.onload = () => {
|
|||
targetElement.classList.toggle("show");
|
||||
});
|
||||
});
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue