@chakra-ui/portal
Advanced tools
Comparing version 1.0.4 to 1.0.5
# Change Log | ||
## 1.0.5 | ||
### Patch Changes | ||
- [`0d620f1d`](https://github.com/chakra-ui/chakra-ui/commit/0d620f1d46b9c72c9aef3bb15a691a249ace2eb4) | ||
[#3079](https://github.com/chakra-ui/chakra-ui/pull/3079) Thanks | ||
[@segunadebayo](https://github.com/segunadebayo)! - Fixed issue where adding | ||
`portalZIndex` to `ChakraProvider` makes app unusable | ||
- Updated dependencies | ||
[[`02855588`](https://github.com/chakra-ui/chakra-ui/commit/02855588a4ffbc6573768052e53cc538361e91ee)]: | ||
- @chakra-ui/hooks@1.1.1 | ||
## 1.0.4 | ||
@@ -4,0 +17,0 @@ |
@@ -33,8 +33,5 @@ "use strict"; | ||
style: { | ||
display: "inline-block", | ||
position: "absolute", | ||
zIndex: zIndex, | ||
top: 0, | ||
left: 0, | ||
right: 0, | ||
bottom: 0 | ||
zIndex: zIndex | ||
} | ||
@@ -81,3 +78,5 @@ }, children); | ||
}, []); | ||
var childrenToRender = manager != null && manager.zIndex ? /*#__PURE__*/React.createElement(Container, null, props.children) : props.children; | ||
var childrenToRender = manager != null && manager.zIndex ? /*#__PURE__*/React.createElement(Container, { | ||
zIndex: manager.zIndex | ||
}, props.children) : props.children; | ||
return portal.current ? /*#__PURE__*/(0, _reactDom.createPortal)( /*#__PURE__*/React.createElement(PortalContextProvider, { | ||
@@ -84,0 +83,0 @@ value: portal.current |
@@ -19,8 +19,5 @@ import { useCallbackRef, useForceUpdate, useSafeLayoutEffect } from "@chakra-ui/hooks"; | ||
style: { | ||
display: "inline-block", | ||
position: "absolute", | ||
zIndex, | ||
top: 0, | ||
left: 0, | ||
right: 0, | ||
bottom: 0 | ||
zIndex | ||
} | ||
@@ -67,3 +64,5 @@ }, children); | ||
}, []); | ||
var childrenToRender = manager != null && manager.zIndex ? /*#__PURE__*/React.createElement(Container, null, props.children) : props.children; | ||
var childrenToRender = manager != null && manager.zIndex ? /*#__PURE__*/React.createElement(Container, { | ||
zIndex: manager.zIndex | ||
}, props.children) : props.children; | ||
return portal.current ? /*#__PURE__*/createPortal( /*#__PURE__*/React.createElement(PortalContextProvider, { | ||
@@ -70,0 +69,0 @@ value: portal.current |
{ | ||
"name": "@chakra-ui/portal", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "React component used to render children outside the DOM hierarchy of the parent component", | ||
@@ -55,3 +55,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@chakra-ui/hooks": "1.1.0", | ||
"@chakra-ui/hooks": "1.1.1", | ||
"@chakra-ui/utils": "1.1.0" | ||
@@ -58,0 +58,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36127
271
+ Added@chakra-ui/hooks@1.1.1(transitive)
- Removed@chakra-ui/hooks@1.1.0(transitive)
Updated@chakra-ui/hooks@1.1.1