jy-headless 0.0.22 → 0.0.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.
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -386,7 +386,7 @@ const Modal = ({ opener, children, targetSelector = 'root', }) => {
|
|
|
386
386
|
const onHandleShow = () => {
|
|
387
387
|
setIsShow(true);
|
|
388
388
|
};
|
|
389
|
-
return (React.createElement(ModalContext, { value: { isShow, setIsShow } },
|
|
389
|
+
return (React.createElement(ModalContext.Provider, { value: { isShow, setIsShow } },
|
|
390
390
|
React.cloneElement(opener, {
|
|
391
391
|
onClick: onHandleShow,
|
|
392
392
|
}),
|
package/dist/index.js
CHANGED
|
@@ -388,7 +388,7 @@ const Modal = ({ opener, children, targetSelector = 'root', }) => {
|
|
|
388
388
|
const onHandleShow = () => {
|
|
389
389
|
setIsShow(true);
|
|
390
390
|
};
|
|
391
|
-
return (React.createElement(ModalContext, { value: { isShow, setIsShow } },
|
|
391
|
+
return (React.createElement(ModalContext.Provider, { value: { isShow, setIsShow } },
|
|
392
392
|
React.cloneElement(opener, {
|
|
393
393
|
onClick: onHandleShow,
|
|
394
394
|
}),
|