bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

First tab is not active if it its generated from data (ng-repeat) and followed by static tabs

Open franciscoruiz opened this issue 11 years ago • 3 comments

Scenario

  • The first N tabs are generated from data, using ng-repeat.
  • Extra tabs are statically defined.

Expected behaviour

  • The first tab is active.

Actual behaviour

  • The first static tab is active.

http://plnkr.co/edit/Wf6ubHOhOQhcSHa9pk7I?p=preview

franciscoruiz avatar Jul 14 '15 09:07 franciscoruiz

Just to confirm, this looks like a current issue in master, as illustrated in this updated Plunker.

wesleycho avatar Jul 17 '15 18:07 wesleycho

This looks like a potentially difficult bug to fix - the tabs call tabsetCtrl.addTab(scope) on each tab directive compilation, and the tabs created with ng-repeat get created after the static version.

I will need to think on this.

wesleycho avatar Jul 17 '15 18:07 wesleycho

Closing in favor of #4836 - keep an eye out for that issue.

wesleycho avatar Nov 07 '15 17:11 wesleycho