File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ function StickPortal(
122122 )
123123}
124124
125- const PortalContext = createContext < ?Node > ( null )
125+ export const PortalContext = createContext < ?Node > ( document . body )
126126
127127export default forwardRef < StickPortalPropsT , ?HTMLElement > ( StickPortal )
128128
@@ -131,7 +131,7 @@ function useHost(transportTo) {
131131
132132 const portalHost = useContext ( PortalContext )
133133
134- const hostParent = transportTo || portalHost || document . body
134+ const hostParent = transportTo || portalHost
135135
136136 invariant ( hostParent , 'Could not determine a parent for the host node.' )
137137
Original file line number Diff line number Diff line change 11// @flow
22export { default } from './Stick'
3+ export { PortalContext } from './StickPortal'
You can’t perform that action at this time.
0 commit comments