Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Sidebar is initially visible on IE 11 #160

Open
stevenswan opened this issue Oct 8, 2018 · 2 comments
Open

Sidebar is initially visible on IE 11 #160

stevenswan opened this issue Oct 8, 2018 · 2 comments
Labels

Comments

@stevenswan
Copy link

stevenswan commented Oct 8, 2018

Version: 8.0.0

Hi,

On IE 11 in the demo and in my application the side bar is initially visible then slides out of view.
This is probably related to issue #59.

A work around I have used in my application is to create a property in your component that OnInit changes wrapped in a setTimeout()

  ngOnInit(): void {
    setTimeout(() => {
      this.animate = true;
    });
  }

Then use this property in your animate input on the ng-sidebar component

@arkon arkon added the bug label Oct 13, 2018
@almeidap
Copy link

This issue applies to Chrome (v70) as well. As another workaround, I used the [hidden] directive to enable the sidebar after view initialization:

HTML:

<ng-sidebar [hidden]="sidebarDisabled"></ng-sidebar>

TS:

public sidebarDisabled = true;

ngAfterViewInit() {
  setTimeout(() => {
    this.sidebarDisabled = false;
  });
}

@aplongh
Copy link

aplongh commented Feb 27, 2019

almeidap, worked like a charm. THANKS !!!!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants