mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-27 19:42:11 +10:00
Merge pull request #504 from sharetribe/fix-modal-scrolling-cleanup
Enable scrolling when modal is unmount
This commit is contained in:
commit
c4f5675cd3
1 changed files with 2 additions and 0 deletions
|
|
@ -39,7 +39,9 @@ export class ModalComponent extends Component {
|
|||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
const { id, onManageDisableScrolling } = this.props;
|
||||
document.body.removeEventListener('keyup', this.handleBodyKeyUp);
|
||||
onManageDisableScrolling(id, false);
|
||||
}
|
||||
|
||||
handleBodyKeyUp(event) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue