Skip to content

Commit 1b9980a

Browse files
Merge pull request #23 from iron-tech-space/Table_and_Selector_FIX
Fix autoSelected when RTTable filtered
2 parents 295468a + ce1cd58 commit 1b9980a

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.0.89
2+
3+
- Fix autoSelected when RTTable filtered
4+
15
## 0.0.88
26

37
- Fix ConfigLoader (remove initialValue from requestLoadConfig)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rt-design",
3-
"version": "0.0.88",
3+
"version": "0.0.89",
44
"description": "React technical design library",
55
"author": "Iron tech space",
66
"license": "MIT",

src/components/Table/ReactBaseTable/Table.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ const Table = forwardRef((props, ref) => {
348348
const reloadData = ({ sortBy, filter, searchValue }, appendParams) => {
349349
// console.log("reloadData params ", sortBy, filter, searchValue, loading);
350350
tableRef.current && tableRef.current.scrollToRow(0, "auto");
351-
if (props.value && props.value.length > 0)
351+
if (selectable && props.value && props.value.length > 0)
352352
_setSelectedRowsHandler(props.value.map(item => item[rowKey]), props.value);
353353
else
354354
_setSelectedRowsHandler();

0 commit comments

Comments
 (0)