We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b046f52 commit bc06817Copy full SHA for bc06817
compat/src/portals.js
@@ -39,18 +39,9 @@ function Portal(props) {
39
nodeType: 1,
40
parentNode: container,
41
childNodes: [],
42
- // Technically this isn't needed
43
- appendChild(child) {
44
- this.childNodes.push(child);
45
- _this._container.appendChild(child);
46
- },
47
insertBefore(child, before) {
48
this.childNodes.push(child);
49
_this._container.insertBefore(child, before);
50
51
- removeChild(child) {
52
- this.childNodes.splice(this.childNodes.indexOf(child) >>> 1, 1);
53
- _this._container.removeChild(child);
54
}
55
};
56
0 commit comments