mayak-common-library 0.0.96 → 0.0.98
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/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -349,17 +349,17 @@ var SelectPro = ({
|
|
|
349
349
|
setOpen(!open);
|
|
350
350
|
};
|
|
351
351
|
(0, import_react2.useEffect)(() => {
|
|
352
|
-
if (openUp) setOpen(
|
|
352
|
+
if (openUp) setOpen(true);
|
|
353
353
|
}, [openUp]);
|
|
354
|
-
(0, import_react2.useEffect)(() => {
|
|
355
|
-
if (collapse) setOpen(false);
|
|
356
|
-
}, [collapse]);
|
|
357
354
|
const handleClose = () => {
|
|
358
355
|
setOpen(false);
|
|
359
356
|
setTimeout(() => {
|
|
360
357
|
setAnchorEl(null);
|
|
361
358
|
}, 200);
|
|
362
359
|
};
|
|
360
|
+
(0, import_react2.useEffect)(() => {
|
|
361
|
+
if (collapse) handleClose();
|
|
362
|
+
}, [collapse]);
|
|
363
363
|
const childrenWithHandleChange = (0, import_react2.isValidElement)(children) ? (0, import_react2.cloneElement)(children, {
|
|
364
364
|
collapseParent: handleClose
|
|
365
365
|
}) : children;
|
package/dist/index.mjs
CHANGED
|
@@ -290,17 +290,17 @@ var SelectPro = ({
|
|
|
290
290
|
setOpen(!open);
|
|
291
291
|
};
|
|
292
292
|
useEffect2(() => {
|
|
293
|
-
if (openUp) setOpen(
|
|
293
|
+
if (openUp) setOpen(true);
|
|
294
294
|
}, [openUp]);
|
|
295
|
-
useEffect2(() => {
|
|
296
|
-
if (collapse) setOpen(false);
|
|
297
|
-
}, [collapse]);
|
|
298
295
|
const handleClose = () => {
|
|
299
296
|
setOpen(false);
|
|
300
297
|
setTimeout(() => {
|
|
301
298
|
setAnchorEl(null);
|
|
302
299
|
}, 200);
|
|
303
300
|
};
|
|
301
|
+
useEffect2(() => {
|
|
302
|
+
if (collapse) handleClose();
|
|
303
|
+
}, [collapse]);
|
|
304
304
|
const childrenWithHandleChange = isValidElement(children) ? cloneElement(children, {
|
|
305
305
|
collapseParent: handleClose
|
|
306
306
|
}) : children;
|