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

*ngIf on second dropdown tab causes second tab to be auto-selected #1357

Closed
Blackbaud-ChristiSchneider opened this issue Dec 11, 2017 · 1 comment

Comments

@Blackbaud-ChristiSchneider
Copy link
Contributor

Expected behavior

First tab is selected by default

Actual behavior

Non-first tab with *ngIf is selected by default

Steps to reproduce

  • Create a tabset with two or more tabs
  • Do not apply an *ngIf to the first tab
  • Apply *ngIf="true" to the second tab
  • Open the page in a mobile-sized screen so the tabs are dropdown-style
  • Note that the second tab is selected

Applying *ngIf="true" to the first tab is a workaround for this problem.

Plunker

https://plnkr.co/edit/T0OMHPYg15ZxwO3c5G4d?p=preview

@Blackbaud-SteveBrush
Copy link
Member

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

No branches or pull requests

6 participants