mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 13:47:02 +08:00
site: fix expand bug
This commit is contained in:
parent
859f103685
commit
8f79c9b328
@ -44,9 +44,9 @@ export default class Demo extends React.Component {
|
||||
{ meta.chinese || meta.english }
|
||||
</Link>
|
||||
</div>
|
||||
<Collapse activeKey={expand ? 'code' : this.state.activeKey}
|
||||
<Collapse activeKey={expand ? `${id}-code` : this.state.activeKey}
|
||||
onChange={this.handleChange.bind(this)}>
|
||||
<Collapse.Panel key="code" header={introChildren}>
|
||||
<Collapse.Panel key={`${id}-code`} header={introChildren}>
|
||||
<div className="highlight">
|
||||
<pre>
|
||||
<code className="javascript" dangerouslySetInnerHTML={{
|
||||
|
Loading…
Reference in New Issue
Block a user