@meduza/ui-kit-2 0.1.40 → 0.1.41
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.
- package/dist/ui-kit-2.cjs.development.js +2 -0
- package/dist/ui-kit-2.cjs.development.js.map +1 -1
- package/dist/ui-kit-2.cjs.production.min.js +1 -1
- package/dist/ui-kit-2.cjs.production.min.js.map +1 -1
- package/dist/ui-kit-2.esm.js +2 -0
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit.css +1278 -1278
- package/package.json +1 -1
- package/src/Popover/index.tsx +4 -0
|
@@ -542,9 +542,11 @@ var Popover = function Popover(_ref) {
|
|
|
542
542
|
};
|
|
543
543
|
|
|
544
544
|
React.useEffect(function () {
|
|
545
|
+
document.body.dataset.popover = 'true';
|
|
545
546
|
window.addEventListener('keydown', escFunction, false);
|
|
546
547
|
window.addEventListener('scroll', handleScroll, false);
|
|
547
548
|
return function () {
|
|
549
|
+
document.body.removeAttribute('data-popover');
|
|
548
550
|
window.removeEventListener('keydown', escFunction, false);
|
|
549
551
|
window.removeEventListener('scroll', handleScroll, false);
|
|
550
552
|
};
|