{"action":"created","issue":{"url":"https://api.github.com/repos/react-bootstrap-table/react-bootstrap-table2/issues/559","repository_url":"https://api.github.com/repos/react-bootstrap-table/react-bootstrap-table2","labels_url":"https://api.github.com/repos/react-bootstrap-table/react-bootstrap-table2/issues/559/labels{/name}","comments_url":"https://api.github.com/repos/react-bootstrap-table/react-bootstrap-table2/issues/559/comments","events_url":"https://api.github.com/repos/react-bootstrap-table/react-bootstrap-table2/issues/559/events","html_url":"https://github.com/react-bootstrap-table/react-bootstrap-table2/issues/559","id":362954662,"node_id":"MDU6SXNzdWUzNjI5NTQ2NjI=","number":559,"title":"Combine Row Selection and Expand Mode","user":{"login":"Julian4711","id":43520007,"node_id":"MDQ6VXNlcjQzNTIwMDA3","avatar_url":"https://avatars0.githubusercontent.com/u/43520007?v=4","gravatar_id":"","url":"https://api.github.com/users/Julian4711","html_url":"https://github.com/Julian4711","followers_url":"https://api.github.com/users/Julian4711/followers","following_url":"https://api.github.com/users/Julian4711/following{/other_user}","gists_url":"https://api.github.com/users/Julian4711/gists{/gist_id}","starred_url":"https://api.github.com/users/Julian4711/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Julian4711/subscriptions","organizations_url":"https://api.github.com/users/Julian4711/orgs","repos_url":"https://api.github.com/users/Julian4711/repos","events_url":"https://api.github.com/users/Julian4711/events{/privacy}","received_events_url":"https://api.github.com/users/Julian4711/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-23T16:08:18Z","updated_at":"2018-10-14T16:02:40Z","closed_at":"2018-10-14T16:02:40Z","author_association":"NONE","body":"Hi,\r\n\r\nis there a way one could use Row Selection and Row Expand at the same time?\r\n\r\nWhen I try to combine the Storybook examples ([selection](https://react-bootstrap-table.github.io/react-bootstrap-table2/storybook/index.html?selectedKind=Row%20Selection&selectedStory=Multiple%20Selection&full=0&addons=1&stories=1&panelRight=0&addonPanel=storybook%2Factions%2Factions-panel) & [expand](https://react-bootstrap-table.github.io/react-bootstrap-table2/storybook/index.html?selectedKind=Row%20Expand&selectedStory=Basic%20Row%20Expand&full=0&addons=1&stories=1&panelRight=0&addonPanel=storybook%2Factions%2Factions-panel)) as follows, row selection does not work. Instead, even when I click on the checkbox, the row expands and is not selected.\r\n\r\nEDIT: Apparently, with the legacy react-bootstrap-table it workes fine: [Example](https://allenfang.github.io/react-bootstrap-table/example.html#expand) (scroll down to \"Expand Row with Selection\").\r\n\r\nThank you!\r\n\r\n  ```\r\n`const selectRow = {\r\n      mode: 'checkbox',\r\n      clickToSelect: true\r\n    };\r\n```\r\n\r\n    const expandRow = {\r\n      renderer: row => (\r\n        <div>\r\n          <p>{ 'This Exow is belong to rowKey ${row.id}' }</p>\r\n          <p>You can r anything here, also you can add additional data on every row object</p>\r\n          <p>expandRow.renderer callback will pass the origin row object to you</p>\r\n        </div>\r\n        ),\r\n        showExpandColumn: false\r\n    };\r\n\r\n    return (\r\n          <BootstrapTable\r\n            keyField='id'\r\n            data={ products }\r\n            columns={ columns }\r\n            expandRow={ expandRow }\r\n            selectRow={ selectRow }\r\n          />`"},"comment":{"url":"https://api.github.com/repos/react-bootstrap-table/react-bootstrap-table2/issues/comments/429638361","html_url":"https://github.com/react-bootstrap-table/react-bootstrap-table2/issues/559#issuecomment-429638361","issue_url":"https://api.github.com/repos/react-bootstrap-table/react-bootstrap-table2/issues/559","id":429638361,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTYzODM2MQ==","user":{"login":"AllenFang","id":5351390,"node_id":"MDQ6VXNlcjUzNTEzOTA=","avatar_url":"https://avatars2.githubusercontent.com/u/5351390?v=4","gravatar_id":"","url":"https://api.github.com/users/AllenFang","html_url":"https://github.com/AllenFang","followers_url":"https://api.github.com/users/AllenFang/followers","following_url":"https://api.github.com/users/AllenFang/following{/other_user}","gists_url":"https://api.github.com/users/AllenFang/gists{/gist_id}","starred_url":"https://api.github.com/users/AllenFang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AllenFang/subscriptions","organizations_url":"https://api.github.com/users/AllenFang/orgs","repos_url":"https://api.github.com/users/AllenFang/repos","events_url":"https://api.github.com/users/AllenFang/events{/privacy}","received_events_url":"https://api.github.com/users/AllenFang/received_events","type":"User","site_admin":false},"created_at":"2018-10-14T16:02:40Z","updated_at":"2018-10-14T16:02:40Z","author_association":"MEMBER","body":"Please upgrade to `react-bootstrap-table-next@1.3.0` and `react-bootstrap-table2-editor@1.2.0`\r\n\r\n[RELEASE NOTE](https://react-bootstrap-table.github.io/react-bootstrap-table2/blog/2018/10/14/version-bump.html) \r\n\r\nCheck [`selectRow.clickToExpand`](https://react-bootstrap-table.github.io/react-bootstrap-table2/docs/row-select-props.html#selectrowclicktoexpand-bool)\r\n\r\n"}}
{"actor":{"display_login":"AllenFang"}}