Perfect scrollbar shouldn't be destroyed if it's not available

+ Print media css classes updated to hide the perfect scrollbars
This commit is contained in:
Sercan Yemen 2017-11-30 10:22:18 +03:00
parent ad21d9fed5
commit 2bbc90af64
2 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ export class FusePerfectScrollbarDirective implements OnInit, AfterViewInit, OnD
ngOnDestroy()
{
if ( !this.isInitialized )
if ( !this.isInitialized || !this.ps )
{
return;
}

View File

@ -42,8 +42,8 @@
fuse-footer,
fuse-quick-panel,
fuse-theme-options,
.ps > .ps__scrollbar-x-rail,
.ps > .ps__scrollbar-y-rail {
.ps > .ps__rail-x,
.ps > .ps__rail-y {
display: none !important;
}