Skip to content

Commit 735eba0

Browse files
BradEsteytomchentw
authored andcommitted
fix(OverlayView): use ReactDOM for unmountComponentAtNode
* Ref #129 * Closes #137 * Original commit: a7e2404 * Original author: @BradEstey
1 parent a6d79a5 commit 735eba0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/creators/OverlayViewCreator.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
Component,
55
Children,
66
} from "react";
7+
import ReactDOM from "react-dom";
78
import {default as invariant} from "invariant";
89

910
import {default as defaultPropsCreator} from "../utils/defaultPropsCreator";
@@ -53,7 +54,7 @@ export default class OverlayViewCreator extends Component {
5354
};
5455

5556
overlayView.onRemove = function () {
56-
React.unmountComponentAtNode(this._containerElement);
57+
ReactDOM.unmountComponentAtNode(this._containerElement);
5758
this._unmountContainerFromPane();
5859
this._containerElement = null;
5960
};

0 commit comments

Comments
 (0)