commit
de532adea5
|
@ -43,6 +43,7 @@ class Overlay extends Component {
|
|||
}
|
||||
|
||||
componentWillUnmount () {
|
||||
document.body.style.overflow = null;
|
||||
if (this.escKeyListener) {
|
||||
document.body.removeEventListener('keydown', this.handleEscKey);
|
||||
this.escKeyListener = null;
|
||||
|
|
|
@ -66,6 +66,7 @@ var Overlay = function (_Component) {
|
|||
}, {
|
||||
key: 'componentWillUnmount',
|
||||
value: function componentWillUnmount() {
|
||||
document.body.style.overflow = null;
|
||||
if (this.escKeyListener) {
|
||||
document.body.removeEventListener('keydown', this.handleEscKey);
|
||||
this.escKeyListener = null;
|
||||
|
@ -127,4 +128,4 @@ Overlay.defaultProps = {
|
|||
invisible: false
|
||||
};
|
||||
exports.default = (0, _reactCssThemr.themr)(_identifiers.OVERLAY)(Overlay);
|
||||
exports.Overlay = Overlay;
|
||||
exports.Overlay = Overlay;
|
||||
|
|
Loading…
Reference in New Issue