Skip to content

Commit

Permalink
Mobile Menu fix #3198
Browse files Browse the repository at this point in the history
  • Loading branch information
hexplor committed Nov 21, 2023
1 parent f825398 commit 37ab661
Show file tree
Hide file tree
Showing 4 changed files with 46,197 additions and 15 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,8 @@
# 5.5.18
## 11/21/2023
1. [Common](#common)
1. [](#bugfix)
- Regression: Mobile Menu fix (#3198)
# 5.5.17
## 10/30/2023
1. [Common](#common)
Expand Down
26 changes: 13 additions & 13 deletions assets/common/application/offcanvas/index.js
Expand Up @@ -125,12 +125,15 @@ var Offcanvas = new prime({
return this;
},

attachMutationEvent: function() {
if (this.offcanvas instanceof Node) {
var observer = new MutationObserver(this.bound('_checkTogglers'));
observer.observe(this.offcanvas, { childList: true, subtree: true });
}
},
attachMutationEvent: function () {
this.observer = new MutationObserver(() => {
this._checkTogglers();
});
this.observer.observe(this.offcanvas[0], {
childList: true,
subtree: true,
});
},

attachTouchEvents: function() {
var msPointerSupported = window.navigator.msPointerEnabled,
Expand Down Expand Up @@ -166,13 +169,10 @@ var Offcanvas = new prime({
return this;
},

detachMutationEvent: function() {
if (this.offcanvas instanceof Node) {
var observer = new MutationObserver(this.bound('_checkTogglers'));
observer.disconnect();
}
},

detachMutationEvent: function () {
this.observer.disconnect();
},

detachTouchEvents: function() {
var msPointerSupported = window.navigator.msPointerEnabled,
touch = {
Expand Down
5,106 changes: 5,105 additions & 1 deletion assets/common/js/main.js

Large diffs are not rendered by default.

41,075 changes: 41,074 additions & 1 deletion platforms/common/js/main.js

Large diffs are not rendered by default.

0 comments on commit 37ab661

Please sign in to comment.