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 65040e5 commit ca29878Copy full SHA for ca29878
components/SLDSModal/index.jsx
@@ -101,6 +101,12 @@ module.exports = React.createClass( {
101
}
102
},
103
104
+ clearBodyScroll: function updateBodyScroll() {
105
+ if (window && document && document.body) {
106
+ document.body.style.overflow = 'inherit';
107
+ }
108
+ },
109
+
110
handleModalClick(event) {
111
if(event && event.stopPropagation){
112
event.stopPropagation();
@@ -252,6 +258,10 @@ module.exports = React.createClass( {
252
258
253
259
254
260
261
262
263
+ componentWillUnmount () {
264
+ this.clearBodyScroll();
255
265
256
266
257
267
0 commit comments