I have a case where I’m dynamically loading tabs on a page. The issue I have is trying to clear the previous tabs to recreate the new ones. When I do this, the select method does not work. Please see the following Fiddle, click the button and you can see that the last tab is selected, not the first one. Is there a work around? I originally tried to destroy the tab and make a new one but that doesn’t seem to work the same way as other objects.
This appears to only be a problem if an item is deleted prior to the add.