Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

fix(tab): fix tab remove when used with ng-repeat #5689

Closed
wants to merge 1 commit into from

Conversation

brentahiti
Copy link
Contributor

  • Fix tab remove when tabs are destroyed in the middle using filters with ng-repeat for example

- Fix tab remove when tabs are destroyed in the middle using filters with ng-repeat for example
@wesleycho
Copy link
Contributor

This is a good PR - thanks for the work!

@wesleycho wesleycho added this to the 1.3.0 milestone Mar 24, 2016
@@ -55,9 +55,15 @@ angular.module('ui.bootstrap.tabs', [])
};

ctrl.removeTab = function removeTab(tab) {
var index = findTabIndex(tab.index);
var index;
for (var i = 0; i < ctrl.tabs.length; i++) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

forEach?

@wesleycho wesleycho closed this in 03e6047 Mar 24, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants