Mobile Menu fix #3198

This commit is contained in:
Karol Orzeł
2023-11-21 18:32:36 +01:00
parent f8253982d1
commit 37ab661ff7
4 changed files with 46197 additions and 15 deletions
+5
View File
@@ -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)
+8 -8
View File
@@ -126,10 +126,13 @@ var Offcanvas = new prime({
},
attachMutationEvent: function () {
if (this.offcanvas instanceof Node) {
var observer = new MutationObserver(this.bound('_checkTogglers'));
observer.observe(this.offcanvas, { childList: true, subtree: true });
}
this.observer = new MutationObserver(() => {
this._checkTogglers();
});
this.observer.observe(this.offcanvas[0], {
childList: true,
subtree: true,
});
},
attachTouchEvents: function() {
@@ -167,10 +170,7 @@ var Offcanvas = new prime({
},
detachMutationEvent: function () {
if (this.offcanvas instanceof Node) {
var observer = new MutationObserver(this.bound('_checkTogglers'));
observer.disconnect();
}
this.observer.disconnect();
},
detachTouchEvents: function() {
+5105 -1
View File
File diff suppressed because one or more lines are too long
+41074 -1
View File
File diff suppressed because one or more lines are too long