Skip to content

Commit eb21247

Browse files
committed
Prune portals (#4667)
1 parent 63e5525 commit eb21247

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

compat/src/portals.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,9 @@ function Portal(props) {
4646
parentNode: container,
4747
childNodes: [],
4848
_children: { _mask: root._mask },
49-
contains: () => true,
5049
insertBefore(child, before) {
5150
this.childNodes.push(child);
5251
_this._container.insertBefore(child, before);
53-
},
54-
removeChild(child) {
55-
this.childNodes.splice(this.childNodes.indexOf(child) >>> 1, 1);
56-
_this._container.removeChild(child);
5752
}
5853
};
5954
}

0 commit comments

Comments
 (0)