Skip to content

Commit c66ff3d

Browse files
Merge pull request mui#2021 from callemall/oliviertassinari-patch-1
[Overlay] Fix server side rendering
2 parents 0d86eea + 80141f6 commit c66ff3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/overlay.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const Overlay = React.createClass({
5454
};
5555
},
5656

57-
componentWillMount() {
57+
componentDidMount() {
5858
this._originalBodyOverflow = document.getElementsByTagName('body')[0].style.overflow;
5959
},
6060

0 commit comments

Comments
 (0)