@coreui/react-pro 4.12.1 → 4.12.2
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/README.md +1 -1
- package/dist/index.es.js +5 -3
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/modal/CModal.tsx +5 -3
package/README.md
CHANGED
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
|
|
43
43
|
Several quick start options are available:
|
|
44
44
|
|
|
45
|
-
- [Download the latest release](https://github.com/coreui/coreui-react-pro/archive/v4.12.
|
|
45
|
+
- [Download the latest release](https://github.com/coreui/coreui-react-pro/archive/v4.12.2.zip)
|
|
46
46
|
- Clone the repo: `git clone https://github.com/coreui/coreui-react.git`
|
|
47
47
|
- Install with [npm](https://www.npmjs.com/): `npm install @coreui/react`
|
|
48
48
|
- Install with [yarn](https://yarnpkg.com/): `yarn add @coreui/react`
|
package/dist/index.es.js
CHANGED
|
@@ -10486,10 +10486,12 @@ var CModal = forwardRef(function (_a, ref) {
|
|
|
10486
10486
|
setVisible(visible);
|
|
10487
10487
|
}, [visible]);
|
|
10488
10488
|
useEffect(function () {
|
|
10489
|
-
|
|
10490
|
-
|
|
10489
|
+
if (_visible) {
|
|
10490
|
+
document.addEventListener('mouseup', handleClickOutside);
|
|
10491
|
+
document.addEventListener('keydown', handleKeyDown);
|
|
10492
|
+
}
|
|
10491
10493
|
return function () {
|
|
10492
|
-
document.removeEventListener('
|
|
10494
|
+
document.removeEventListener('mouseup', handleClickOutside);
|
|
10493
10495
|
document.removeEventListener('keydown', handleKeyDown);
|
|
10494
10496
|
};
|
|
10495
10497
|
}, [_visible]);
|