diff --git a/packages/components/src/tabs/stories/index.story.tsx b/packages/components/src/tabs/stories/index.story.tsx index 5b8a966a35834..0e7ab725e371d 100644 --- a/packages/components/src/tabs/stories/index.story.tsx +++ b/packages/components/src/tabs/stories/index.story.tsx @@ -273,29 +273,17 @@ const ControlledModeTemplate: StoryFn< typeof Tabs > = ( props ) => { - setTimeout( - () => setSelectedTabId( 'tab1' ), - 3000 - ), + onClick: () => setSelectedTabId( 'tab1' ), title: 'Tab 1', isActive: selectedTabId === 'tab1', }, { - onClick: () => - setTimeout( - () => setSelectedTabId( 'tab2' ), - 3000 - ), + onClick: () => setSelectedTabId( 'tab2' ), title: 'Tab 2', isActive: selectedTabId === 'tab2', }, { - onClick: () => - setTimeout( - () => setSelectedTabId( 'tab3' ), - 3000 - ), + onClick: () => setSelectedTabId( 'tab3' ), title: 'Tab 3', isActive: selectedTabId === 'tab3', }, @@ -311,7 +299,6 @@ const ControlledModeTemplate: StoryFn< typeof Tabs > = ( props ) => { export const ControlledMode = ControlledModeTemplate.bind( {} ); ControlledMode.args = { selectedTabId: 'tab3', - selectOnMove: false, }; const TabBecomesDisabledTemplate: StoryFn< typeof Tabs > = ( props ) => {