Skip to content

Commit

Permalink
fix(Tabs): support dynamic tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
0x0dr1y authored and mtorromeo committed Sep 16, 2024
1 parent a331041 commit 258ddfd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/src/components/Tabs/Tabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ import buttonStyles from '@patternfly/react-styles/css/components/Button/button'
import { classesFromBreakpointProps, type InsetBreakpointProps } from '../../breakpoints';
import { isElementInView, getUniqueId } from '../../util';
import { useManagedProp } from '../../use';
import { watchEffect, nextTick, onMounted, provide, computed, type InjectionKey, type ComputedRef, type Ref, ref, type WritableComputedRef, type HTMLAttributes } from 'vue';
import { watch, watchEffect, nextTick, onMounted, provide, computed, type InjectionKey, type ComputedRef, type Ref, ref, type WritableComputedRef, type HTMLAttributes } from 'vue';
import { useOUIAProps, type OUIAProps } from '../../helpers/ouia';
import AngleLeftIcon from '@vue-patternfly/icons/angle-left-icon';
import AngleRightIcon from '@vue-patternfly/icons/angle-right-icon';
Expand Down Expand Up @@ -160,6 +160,8 @@ watchEffect(() => {
}
});
watch(tabKeys, handleScrollButtons, { immediate: true });
onMounted(() => {
nextTick(handleScrollButtons);
});
Expand Down

0 comments on commit 258ddfd

Please sign in to comment.