@nice-digital/global-nav 5.0.923 → 5.0.925
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -66,7 +66,7 @@ var HeaderContextProvider = function HeaderContextProvider(_ref) {
|
|
|
66
66
|
setidOfOpenDropdown(null);
|
|
67
67
|
}.bind(this), [typeof location == "undefined" ? null : location.href]);
|
|
68
68
|
|
|
69
|
-
var
|
|
69
|
+
var popStateHandler = function popStateHandler() {
|
|
70
70
|
(0, _newArrowCheck2["default"])(this, _this);
|
|
71
71
|
setidOfOpenDropdown(null);
|
|
72
72
|
}.bind(this);
|
|
@@ -75,10 +75,10 @@ var HeaderContextProvider = function HeaderContextProvider(_ref) {
|
|
|
75
75
|
var _this3 = this;
|
|
76
76
|
|
|
77
77
|
(0, _newArrowCheck2["default"])(this, _this);
|
|
78
|
-
window && window.addEventListener("
|
|
78
|
+
window && window.addEventListener("popstate", popStateHandler);
|
|
79
79
|
return function () {
|
|
80
80
|
(0, _newArrowCheck2["default"])(this, _this3);
|
|
81
|
-
window && window.removeEventListener("
|
|
81
|
+
window && window.removeEventListener("popstate", popStateHandler);
|
|
82
82
|
}.bind(this);
|
|
83
83
|
}.bind(this), []);
|
|
84
84
|
(0, _react.useEffect)(function () {
|