preact-portal icon indicating copy to clipboard operation
preact-portal copied to clipboard

:satellite: Render Preact components in (a) SPACE :milky_way: :stars:

Results 10 preact-portal issues
Sort by recently updated
recently updated
newest added

Hi! I believe this repository needs a CONTRIBUTING.md to help people like me! Also, I would like to take up this issue as part of hacktoberfest.

Trying to use `preact-head-tag` in an ESM project using `@pika/web` (no webpack). `preact-head-tag` depends on `preact-portal`, and it’s not possible to use because there’s no [ES Module export](https://github.com/rollup/rollup/wiki/pkg.module). This PR...

This is due to how render doesn't append new dom anymore if it's being rendered already, also this.props.children is not always an array. I had a go at fixing it...

https://github.com/developit/preact-portal/blob/ba212795be780de0d0a0c9725c69b1998e6f1123/src/preact-portal.js#L66

The point of `` is to pass children to it (that are rendered somewhere else). And `props.children !== prevProps.children` always, right? If so, doesn't this mean that the for-if check...

In some cases there is a need to provide different document context, like when rendering the portal inside of a friendly iframe.

Can I use preact-portal to display material-ui@next modals with preact? Preact itself doesn’t support them

Inspired by the use case of blocking scroll (also https://github.com/reactjs/react-modal/issues/60) Should we consider adding events into Preact Portal or make it add a class to the `into`? events such as...

Simple counter, portal-ing the display elsewhere: http://jsfiddle.net/50gz1mde/2/ Works as expected in Chrome, Safari, Firefox In IE Edge, 11, 10, 9, it seemingly randomly duplicates the the portal content:

bug