hi.
i jumped into https://github.com/FrDH/mmenu-light/blob/master/esm/core/index.js
at line 49.
--> this.drawer = new MmOffCanvasDrawer(null, position);
In used for init:
const drawer = menu.offcanvas(
//options
{
node: document.querySelector("#menu-offcanvas"),
}
);
But i think MmOffCanvasDrawer is always initialized with null. So in my case document.querySelector("#menu-offcanvas") will be ignored.
hi.
i jumped into https://github.com/FrDH/mmenu-light/blob/master/esm/core/index.js
at line 49.
--> this.drawer = new MmOffCanvasDrawer(null, position);
In used for init:
const drawer = menu.offcanvas(
//options
{
node: document.querySelector("#menu-offcanvas"),
}
);
But i think MmOffCanvasDrawer is always initialized with null. So in my case document.querySelector("#menu-offcanvas") will be ignored.