vue-strap icon indicating copy to clipboard operation
vue-strap copied to clipboard

Tabs generated for list don't support removal of headers

Open sburnicki opened this issue 7 years ago • 3 comments

When I generate tabs from a list like this:

  <tabs nav-style="tabs" v-model="activeTab">
    <tab v-for="(myTab) in myTabs" v-bind:header="myTab.name">
   ...

Then I can add and remove new tabs. However, on removal (like this.myTabs.splice(0, 1)) the headers don't get properly updated.

I guess this is because they are explicitly added on created, but not being removed in beforeDestroy in the Tab component

sburnicki avatar May 18 '17 12:05 sburnicki

Same error!

laurenswarson avatar May 22 '17 18:05 laurenswarson

Same here.

Toilal avatar Jun 19 '17 09:06 Toilal

I wrote a Pull Request, but i'm not sure this repository is still maintained :(

Toilal avatar Jun 19 '17 10:06 Toilal