developit / developit/preact-portal

breaks on 10.0.0-alpha.*

Open
#18 2 comments 3 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
183
Forks
23
PR merge metrics
No merged PRs in 30d

Description

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 by doing some workaround like:

```js
this.remote = this.props.into.appendChild(document.createElement('div'));
```

But then I don't know Preact well enough to render directly into that remote, render will render inside the div only. Not the current behaviour.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.