Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
fix(Tabs): tab issue when route changed (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukicenturi authored Jan 9, 2024
1 parent c7ee49d commit 529bad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/tabs/tabs/Tabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ const applyNewValue = (onlyLink = false) => {
(child) => !(child.node.componentOptions?.propsData as TabProps).disabled,
);
if (enabledChildren.length > 0) {
let newValue: string | number = 0;
let newValue: string | number = get(value) || 0;
enabledChildren.forEach((child, index) => {
const props = child.node.componentOptions?.propsData as TabProps;
if (!onlyLink && index === 0 && props.tabValue) {
Expand Down

0 comments on commit 529bad4

Please sign in to comment.