Skip to content

Commit 258ddfd

Browse files
0x0dr1ymtorromeo
authored andcommitted
fix(Tabs): support dynamic tabs
1 parent a331041 commit 258ddfd

File tree

1 file changed

+3
-1
lines changed
  • packages/core/src/components/Tabs

1 file changed

+3
-1
lines changed

packages/core/src/components/Tabs/Tabs.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ import buttonStyles from '@patternfly/react-styles/css/components/Button/button'
107107
import { classesFromBreakpointProps, type InsetBreakpointProps } from '../../breakpoints';
108108
import { isElementInView, getUniqueId } from '../../util';
109109
import { useManagedProp } from '../../use';
110-
import { watchEffect, nextTick, onMounted, provide, computed, type InjectionKey, type ComputedRef, type Ref, ref, type WritableComputedRef, type HTMLAttributes } from 'vue';
110+
import { watch, watchEffect, nextTick, onMounted, provide, computed, type InjectionKey, type ComputedRef, type Ref, ref, type WritableComputedRef, type HTMLAttributes } from 'vue';
111111
import { useOUIAProps, type OUIAProps } from '../../helpers/ouia';
112112
import AngleLeftIcon from '@vue-patternfly/icons/angle-left-icon';
113113
import AngleRightIcon from '@vue-patternfly/icons/angle-right-icon';
@@ -160,6 +160,8 @@ watchEffect(() => {
160160
}
161161
});
162162
163+
watch(tabKeys, handleScrollButtons, { immediate: true });
164+
163165
onMounted(() => {
164166
nextTick(handleScrollButtons);
165167
});

0 commit comments

Comments
 (0)