Skip to content

Commit d2b7807

Browse files
Merge pull request mui#1957 from mmckelvy/master
[Overlay] Fix body overflow style reset in overlay.jsx
2 parents c8cada0 + d25d122 commit d2b7807

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/overlay.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ const Overlay = React.createClass({
5454
};
5555
},
5656

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

6161
componentDidUpdate() {

0 commit comments

Comments
 (0)