mirror of
https://github.com/gantry/gantry5.git
synced 2026-08-19 01:15:04 -05:00
Mobile Menu fix #3198
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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,
|
||||
@@ -166,12 +169,9 @@ 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,
|
||||
|
||||
Vendored
+5105
-1
File diff suppressed because one or more lines are too long
Vendored
+41074
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user