-
-
Notifications
You must be signed in to change notification settings - Fork 173
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Overview of the problem
@oruga-ui/oruga-next: 0.5.4
vue: 3.2.31
Description
Oruga tabs component is placing all new tab items at the end, even when it's not supposed to.
Steps to reproduce
- Use code snippet
<o-tabs>
<o-tab-item
v-for="car in cars"
:key="car.id"
>
<template #header>
{{ car.name }}
</template>
</o-tab-item>
<o-tab-item>
<template #header>
Always last tab
</template>
</o-tab-item>
</o-tabs>
- Create initial list
cars: [
{ id: 1, name: "Car#1" },
{ id: 2, name: "Car#2" }
]
- Add a new car to the list (after component has been mounted)
this.cars.push({ id: 3, name: "Car#3" })
Expected behavior
Expected order of tabs:
- Car#1
- Car#2
- Car#3
- Always last tab
Actual behavior
Actual order of tabs:
- Car#1
- Car#2
- Always last tab
- Car#3
Reproduce here:
TabIssue.zip
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working