{"action":"created","issue":{"url":"https://api.github.com/repos/nkbt/react-collapse/issues/55","repository_url":"https://api.github.com/repos/nkbt/react-collapse","labels_url":"https://api.github.com/repos/nkbt/react-collapse/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/nkbt/react-collapse/issues/55/comments","events_url":"https://api.github.com/repos/nkbt/react-collapse/issues/55/events","html_url":"https://github.com/nkbt/react-collapse/issues/55","id":161281755,"number":55,"title":"Instantly collapses on first collapse","user":{"login":"bdely","id":2165209,"avatar_url":"https://avatars.githubusercontent.com/u/2165209?v=3","gravatar_id":"","url":"https://api.github.com/users/bdely","html_url":"https://github.com/bdely","followers_url":"https://api.github.com/users/bdely/followers","following_url":"https://api.github.com/users/bdely/following{/other_user}","gists_url":"https://api.github.com/users/bdely/gists{/gist_id}","starred_url":"https://api.github.com/users/bdely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdely/subscriptions","organizations_url":"https://api.github.com/users/bdely/orgs","repos_url":"https://api.github.com/users/bdely/repos","events_url":"https://api.github.com/users/bdely/events{/privacy}","received_events_url":"https://api.github.com/users/bdely/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nkbt/react-collapse/labels/Type:%20Question","name":"Type: Question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-20T20:05:58Z","updated_at":"2016-06-21T13:25:26Z","closed_at":null,"body":"I have a component list and each item could have a set of children react-collapse wraps the children component. When I collapse an item the first time it collapses instantly and after that it works fine.\r\nit is really noticeable when my component in the list has a button that can toggle the status if that item to enable or disable, and when I toggle any item for the first time all children collapse instantly and then reopen, but the state of it being opened was never changed. \r\nIt seems that it is happening on the first state change update after it was initialized. If I change isOpened to be false by default it is not an issue\r\n"},"comment":{"url":"https://api.github.com/repos/nkbt/react-collapse/issues/comments/227438349","html_url":"https://github.com/nkbt/react-collapse/issues/55#issuecomment-227438349","issue_url":"https://api.github.com/repos/nkbt/react-collapse/issues/55","id":227438349,"user":{"login":"bdely","id":2165209,"avatar_url":"https://avatars.githubusercontent.com/u/2165209?v=3","gravatar_id":"","url":"https://api.github.com/users/bdely","html_url":"https://github.com/bdely","followers_url":"https://api.github.com/users/bdely/followers","following_url":"https://api.github.com/users/bdely/following{/other_user}","gists_url":"https://api.github.com/users/bdely/gists{/gist_id}","starred_url":"https://api.github.com/users/bdely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdely/subscriptions","organizations_url":"https://api.github.com/users/bdely/orgs","repos_url":"https://api.github.com/users/bdely/repos","events_url":"https://api.github.com/users/bdely/events{/privacy}","received_events_url":"https://api.github.com/users/bdely/received_events","type":"User","site_admin":false},"created_at":"2016-06-21T13:25:26Z","updated_at":"2016-06-21T13:25:26Z","body":"I just try by not having the children rendered and set the div inside the collapse element to 100px and it still closes instantly\r\nHere is the my code for rendering the collapse component\r\n```\r\nif (typeof this.props.children !== 'undefined') {\r\nreturn <Collapse isOpened={ this.state.expanded } >\r\n                <div className=\"treeview-children\" style={{ height: '100px' }}>\r\n                    \r\n                </div>\r\n            </Collapse>\r\n        }\r\n```"}}
{"actor":{"display_login":"bdely"}}