Skip to content

Commit

Permalink
Merge pull request #40 from themyth92/fix/removeScrollClass
Browse files Browse the repository at this point in the history
Remove scrolling class after close
  • Loading branch information
themyth92 authored Oct 14, 2019
2 parents 4fd8510 + 2dd089b commit dee26a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-lightbox",
"version": "2.1.0",
"version": "2.1.1",
"description": "A port >= angular5 for lightbox2",
"main": "index.js",
"dependencies": {},
Expand Down
2 changes: 1 addition & 1 deletion src/lightbox.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ export class LightboxComponent implements OnInit, AfterViewInit, OnDestroy, OnIn
private _end(): void {
this.ui.classList = 'lightbox animation fadeOut';
if (this.options.disableScrolling) {
this._rendererRef.addClass(this._documentRef.documentElement, 'lb-disable-scrolling');
this._rendererRef.removeClass(this._documentRef.documentElement, 'lb-disable-scrolling');
}
setTimeout(() => {
this.cmpRef.destroy();
Expand Down

0 comments on commit dee26a4

Please sign in to comment.