Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

offcanvas Option, use different node Element doesnt work #97

Open
schreck78 opened this issue Oct 14, 2023 · 0 comments
Open

offcanvas Option, use different node Element doesnt work #97

schreck78 opened this issue Oct 14, 2023 · 0 comments

Comments

@schreck78
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant