@ainias42/react-bootstrap-mobile 0.1.22 → 0.1.23
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* @ainias42/react-bootstrap-mobile v0.1.
|
|
3
|
+
* @ainias42/react-bootstrap-mobile v0.1.22
|
|
4
4
|
* git+https://github.com/Ainias/Bootstrap-React-Mobile.git
|
|
5
5
|
* Copyright (c) Silas Günther and project contributors.
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
@@ -22465,9 +22465,17 @@ const Menu = withMemo(withRenderBrowserOnly(function Menu({
|
|
|
22465
22465
|
window === null || window === void 0 ? void 0 : window.addEventListener('mousedown', listener, {
|
|
22466
22466
|
capture: true
|
|
22467
22467
|
});
|
|
22468
|
-
|
|
22468
|
+
window === null || window === void 0 ? void 0 : window.addEventListener('touchstart', listener, {
|
|
22469
22469
|
capture: true
|
|
22470
22470
|
});
|
|
22471
|
+
return () => {
|
|
22472
|
+
window === null || window === void 0 ? void 0 : window.removeEventListener('mousedown', listener, {
|
|
22473
|
+
capture: true
|
|
22474
|
+
});
|
|
22475
|
+
window === null || window === void 0 ? void 0 : window.removeEventListener('touchstart', listener, {
|
|
22476
|
+
capture: true
|
|
22477
|
+
});
|
|
22478
|
+
};
|
|
22471
22479
|
}
|
|
22472
22480
|
return undefined;
|
|
22473
22481
|
}, [isOpen, onClose, window]);
|