Skip to content

offcanvas Option, use different node Element doesnt work #97

Description

@schreck78

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions