Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sm-tab is not working on ie11 #185

Open
jmblancotejero opened this issue Jun 14, 2017 · 1 comment
Open

sm-tab is not working on ie11 #185

jmblancotejero opened this issue Jun 14, 2017 · 1 comment

Comments

@jmblancotejero
Copy link

tab component is not working on ie11. When you use sm-tab, all tabs are shown and no hide/show functionality is working.

@jmblancotejero
Copy link
Author

I found the solution:

The original code is:

ngAfterViewInit() {
    this.tabEl.nativeElement.parentElement.classList.add("ui", "tab", "bottom", "attached", "segment");

    if (this.active) {
      this.tabEl.nativeElement.parentElement.classList.add("active");
    }
  }

The problem is that ie11 doesn't add all those classes to the element, so the solution was to include all classes one by one:

this.tabEl.nativeElement.parentElement.classList.add('ui');
this.tabEl.nativeElement.parentElement.classList.add('tab');
this.tabEl.nativeElement.parentElement.classList.add('bottom');
this.tabEl.nativeElement.parentElement.classList.add('attached');
this.tabEl.nativeElement.parentElement.classList.add('segment');

And now is working perfectly :)

Regards!

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

No branches or pull requests

1 participant