react-useportal
react-useportal copied to clipboard
π React hook for Portals
I have a sizable project where I used react-useportal in a few places, and now I am working on upgrading it from running React 17.9 to React 18.2. Are there...
This makes it a bit easier to quickly select the desired command for copying and pasting.
I moved `appendChild` in the `useEfect` of the hook to the `Portal` fucntion's `useEfect`, so that we won't have an empty div right after we call `usePortal`. The portal will...
I'm trying to open a modal on another modal using react-useportal. I manage to make it happen, but I'm getting the following error when I am trying to close or...
Can we somehow prevent this package from adding empty divs to the end of the body on init? 
**Describe the bug** `Warning: Did not expect server HTML to contain a in .` in nextjs React-17 ssr. **β οΈ Make a Codesandbox β οΈ** https://codesandbox.io/s/useportal-in-nextjs-codesandbox-container-forked-oh10i?file=/pages/index.js **To Reproduce** Run the sandbox and...
Bumps [ajv](https://github.com/ajv-validator/ajv) from 6.10.2 to 6.12.6. Release notes Sourced from ajv's releases. v6.12.6 Fix performance issue of "url" format. v6.12.5 Fix uri scheme validation (@βChALkeR). Fix boolean schemas with strictKeywords...
I'm trying to openPortal on route change. When route changes, I get; You must either add a `ref` to the element you are interacting with or pass an `event` to...
Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...
Bumps [tar](https://github.com/npm/node-tar) from 4.4.13 to 4.4.19. Commits 9a6faa0 4.4.19 70ef812 drop dirCache for symlink on all platforms 3e35515 4.4.18 52b09e3 fix: prevent path escape using drive-relative paths bb93ba2 fix: reserve...