Skip to content

Commit a36065d

Browse files
author
Fred Heusschen
committed
cloned mmenu fix
1 parent e01546a commit a36065d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

dist/mburger/js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default class extends HTMLElement {
4444
__classPrivateFieldGet(this, _instances, "m", _disconnectMenu).call(this);
4545
}
4646
/** Node for the new menu. */
47-
const menuNode = document.querySelector(`#${newValue}`);
47+
const menuNode = document.querySelector(`#mm-${newValue}, #${newValue}`);
4848
if (!menuNode) {
4949
return;
5050
}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mburger-webcomponent",
3-
"version": "3.1.1",
3+
"version": "3.1.2",
44
"main": "dist/mburger/index.js",
55
"module": "dist/mburger/index.js",
66
"author": "Fred Heusschen <info@mmenujs.com>",

src/mburger/js/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default class extends HTMLElement {
4444
}
4545

4646
/** Node for the new menu. */
47-
const menuNode: HTMLElement = document.querySelector(`#${newValue}`);
47+
const menuNode: HTMLElement = document.querySelector(`#mm-${newValue}, #${newValue}`);
4848
if (!menuNode) {
4949
return;
5050
}

0 commit comments

Comments
 (0)