Skip to content

Commit c130ca2

Browse files
fix: tabs on the config page now work when clicked on (#9855)
1 parent aea4508 commit c130ca2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/graphql-playground-v2/src/components/ConfigScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export default class Config extends Component<ConfigProps, ConfigState> {
190190
alt="GraphlQL Playground Logo"
191191
style={{ height: '5em', display: 'block' }}
192192
/>
193-
<Tabs defaultTab="configuration">
193+
<Tabs currentTab={currentTab} onTabChange={(id) => this.setState({ currentTab: id })}>
194194
<Tabs.List>
195195
{TABS.map(({ id, label }) => (
196196
<Tabs.Tab panelId={id} key={id}>

0 commit comments

Comments
 (0)