qbs-react-grid 1.1.40 → 1.1.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -121,7 +121,7 @@ var QbsTable = function QbsTable(_ref) {
121
121
  var keys = event.target.checked ? data.map(function (item) {
122
122
  return item.id;
123
123
  }) : [];
124
- var updatedKeys = [].concat(checkedKeys, keys);
124
+ var updatedKeys = [].concat(keys);
125
125
  setCheckedKeys(updatedKeys);
126
126
  handleChecked(updatedKeys);
127
127
  }, [data]);
@@ -127,7 +127,7 @@ var QbsTable = function QbsTable(_ref) {
127
127
  var keys = event.target.checked ? data.map(function (item) {
128
128
  return item.id;
129
129
  }) : [];
130
- var updatedKeys = [].concat(checkedKeys, keys);
130
+ var updatedKeys = [].concat(keys);
131
131
  setCheckedKeys(updatedKeys);
132
132
  handleChecked(updatedKeys);
133
133
  }, [data]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qbs-react-grid",
3
- "version": "1.1.40",
3
+ "version": "1.1.41",
4
4
  "description": "A React table component",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -7,7 +7,13 @@ import HeaderCell from '../HeaderCell';
7
7
  import Pagination from '../Pagination';
8
8
  import Table from '../Table';
9
9
  import { QbsColumnProps, QbsTableProps } from './commontypes';
10
- import { ActionCell, CheckCell, CustomRowStatus, CustomTableCell, ExpandCell } from './CustomTableCell';
10
+ import {
11
+ ActionCell,
12
+ CheckCell,
13
+ CustomRowStatus,
14
+ CustomTableCell,
15
+ ExpandCell
16
+ } from './CustomTableCell';
11
17
  import ToolBar from './Toolbar';
12
18
  import ColumToggle from './utilities/ColumShowHide';
13
19
  import debounce from './utilities/debounce';
@@ -102,7 +108,7 @@ const QbsTable: React.FC<QbsTableProps> = ({
102
108
  const handleCheckAll = useCallback(
103
109
  (event: React.ChangeEvent<HTMLInputElement>) => {
104
110
  const keys = event.target.checked ? data.map(item => item.id) : [];
105
- let updatedKeys = [...checkedKeys, ...keys];
111
+ let updatedKeys = [...keys];
106
112
  setCheckedKeys(updatedKeys);
107
113
  handleChecked(updatedKeys);
108
114
  },