Skip to content

Commit 6b28c46

Browse files
committed
Playground: Use a key to refresh the form editor when tab changes
1 parent 597467c commit 6b28c46

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/src/tabs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ export class TabContent extends React.Component {
232232
fieldName='test_field'
233233
modelName='TestModel'
234234
errorMap={this.state.errorMap}
235+
key={this.props.activeTabIndex}
235236
/>
236237

237238
{this.getActiveTab().slug === 'validation' &&

0 commit comments

Comments
 (0)