{"action":"closed","issue":{"url":"https://api.github.com/repos/react-component/collapse/issues/63","repository_url":"https://api.github.com/repos/react-component/collapse","labels_url":"https://api.github.com/repos/react-component/collapse/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/react-component/collapse/issues/63/comments","events_url":"https://api.github.com/repos/react-component/collapse/issues/63/events","html_url":"https://github.com/react-component/collapse/issues/63","id":223064953,"number":63,"title":"accordion={true} not working","user":{"login":"yuripramos","id":7452143,"avatar_url":"https://avatars1.githubusercontent.com/u/7452143?v=3","gravatar_id":"","url":"https://api.github.com/users/yuripramos","html_url":"https://github.com/yuripramos","followers_url":"https://api.github.com/users/yuripramos/followers","following_url":"https://api.github.com/users/yuripramos/following{/other_user}","gists_url":"https://api.github.com/users/yuripramos/gists{/gist_id}","starred_url":"https://api.github.com/users/yuripramos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuripramos/subscriptions","organizations_url":"https://api.github.com/users/yuripramos/orgs","repos_url":"https://api.github.com/users/yuripramos/repos","events_url":"https://api.github.com/users/yuripramos/events{/privacy}","received_events_url":"https://api.github.com/users/yuripramos/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-04-20T13:19:36Z","updated_at":"2017-04-26T13:35:58Z","closed_at":"2017-04-26T13:35:58Z","body":"> If accordion is true, only one panel can be open. Opening another panel will cause the previously opened panel to close. activeKey should be an string, if passing an array (the first item in the array will be used).\r\n> \r\n\r\nHere's my snippet: \r\n```\r\n\r\n  render(){\r\n    const stateStyle = this.state.active ? styles.active : styles.inactive;\r\n\r\n    const Materias = this.props.items.map((item, key)=>(\r\n        <Panel header={item.title} key={key}>\r\n          <HeaderComponent title={item.title} id={item.id} subtitle={item.subtitle} category={item.categoria}/>\r\n          <Content content={item.content[0]}/>\r\n          <Footer />\r\n        </Panel>\r\n    )); \r\n    return (\r\n      <div className={style.container}>\r\n        <Collapse accordion={true}>\r\n          {Materias}\r\n        </Collapse>\r\n      </div>\r\n    );\r\n  }\r\n```\r\n\r\nActually im rendering 3 panels, and even with the accordion prop = true_ I can open the 3 at the same time."}}
{"actor":{"display_login":"yuripramos"}}