Skip to content

Commit fcc97f8

Browse files
committed
Fixed unwanted tab resets
Prevents resetting tab number if page not changed
1 parent 3099314 commit fcc97f8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ui/src/layouts/Tabs.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@ export default {
7474
next(vm => {
7575
// Select the first tabsheet every time the user arrives on this page
7676
if (vm.orderedGroups && vm.orderedGroups.length > 0) {
77-
vm.tab = 0
77+
// Check if origin and destination pages are unique
78+
if (to?.name !== from?.name) {
79+
vm.tab = 0
80+
}
7881
}
7982
})
8083
},

0 commit comments

Comments
 (0)