{"action":"created","issue":{"url":"https://api.github.com/repos/AllenFang/react-bootstrap-table/issues/260","repository_url":"https://api.github.com/repos/AllenFang/react-bootstrap-table","labels_url":"https://api.github.com/repos/AllenFang/react-bootstrap-table/issues/260/labels{/name}","comments_url":"https://api.github.com/repos/AllenFang/react-bootstrap-table/issues/260/comments","events_url":"https://api.github.com/repos/AllenFang/react-bootstrap-table/issues/260/events","html_url":"https://github.com/AllenFang/react-bootstrap-table/issues/260","id":132512185,"number":260,"title":"On state change: Uncaught TypeError: Cannot read property 'props' of null","user":{"login":"pirate","id":511499,"avatar_url":"https://avatars.githubusercontent.com/u/511499?v=3","gravatar_id":"","url":"https://api.github.com/users/pirate","html_url":"https://github.com/pirate","followers_url":"https://api.github.com/users/pirate/followers","following_url":"https://api.github.com/users/pirate/following{/other_user}","gists_url":"https://api.github.com/users/pirate/gists{/gist_id}","starred_url":"https://api.github.com/users/pirate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pirate/subscriptions","organizations_url":"https://api.github.com/users/pirate/orgs","repos_url":"https://api.github.com/users/pirate/repos","events_url":"https://api.github.com/users/pirate/events{/privacy}","received_events_url":"https://api.github.com/users/pirate/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/AllenFang/react-bootstrap-table/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-09T19:37:31Z","updated_at":"2016-02-11T19:05:38Z","closed_at":null,"body":"Whenever I search my table (or update its state in any way), I get this error, and the table breaks.\r\n\r\n`Uncaught TypeError: Cannot read property 'props' of null` on line `48` on on `TableColumn`'s `children`.\r\n\r\n<img width=\"655\" alt=\"screen shot 2016-02-09 at 2 29 15 pm\" src=\"https://cloud.githubusercontent.com/assets/511499/12928100/a50bbac2-cf39-11e5-9512-08b6ef70d9f6.PNG\">\r\nChrome dev console breakpoint set on line 48, showing the value of `children` immediately before the error.\r\n<img width=\"668\" alt=\"screen shot 2016-02-09 at 2 28 50 pm\" src=\"https://cloud.githubusercontent.com/assets/511499/12928097/a0cd42fa-cf39-11e5-842b-d53c453336d8.PNG\">\r\n\r\nFo some reason the if statement on line `47` seems to think `typeof \"251\" === \"object\"`, and it immediately errors on the next line when it tries to call `\"251\".props`, which of course doesn't exist since `\"251\"` is a string.  I've tried checking the type in console as well `typeof children >> \"string\"`, I'm stumped.  Any ideas?\r\n\r\n----\r\n\r\n**Code to reproduce:**\r\n```javascript\r\n\r\nexport class CustomSortTable extends React.Component {\r\n    render() {\r\n        var {items, fields} = this.props;\r\n        return <BootstrapTable data={items} search={true}>\r\n            {fields.map((field, idx) => \r\n                <TableHeaderColumn\r\n                    dataField={field.id}\r\n                    dataSort={true}\r\n                    key={field.id}\r\n                    isKey={field.isKey || false}>\r\n                    {field.name}\r\n                </TableHeaderColumn>)}\r\n        </BootstrapTable>\r\n    }\r\n};\r\n\r\nvar fields = [\r\n    {id: 'id', name: 'ID', 'isKey': true},\r\n    {id: 'my_value', name: 'My Value'},\r\n]\r\n\r\nvar items = [{\r\n     'id': '251',\r\n     'my_value': true,\r\n}, ...]\r\n\r\n<CustomSortTable items={items} fields={fields}/>\r\n```"},"comment":{"url":"https://api.github.com/repos/AllenFang/react-bootstrap-table/issues/comments/183012561","html_url":"https://github.com/AllenFang/react-bootstrap-table/issues/260#issuecomment-183012561","issue_url":"https://api.github.com/repos/AllenFang/react-bootstrap-table/issues/260","id":183012561,"user":{"login":"pirate","id":511499,"avatar_url":"https://avatars.githubusercontent.com/u/511499?v=3","gravatar_id":"","url":"https://api.github.com/users/pirate","html_url":"https://github.com/pirate","followers_url":"https://api.github.com/users/pirate/followers","following_url":"https://api.github.com/users/pirate/following{/other_user}","gists_url":"https://api.github.com/users/pirate/gists{/gist_id}","starred_url":"https://api.github.com/users/pirate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pirate/subscriptions","organizations_url":"https://api.github.com/users/pirate/orgs","repos_url":"https://api.github.com/users/pirate/repos","events_url":"https://api.github.com/users/pirate/events{/privacy}","received_events_url":"https://api.github.com/users/pirate/received_events","type":"User","site_admin":false},"created_at":"2016-02-11T19:05:38Z","updated_at":"2016-02-11T19:05:38Z","body":"react-bootstrap-table `1.5.0`, react `0.14.6`.  I'll try a few things, and if they don't work I'll see if I can write some more reproducible code than this snippet."}}