ods-component-lib 1.17.13 → 1.17.15

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.
package/dist/index.js CHANGED
@@ -1214,19 +1214,6 @@ var customizeBooleanColumnRender = function customizeBooleanColumnRender(e) {
1214
1214
  };
1215
1215
  function OdsDataGrid(props) {
1216
1216
  var dataGridRef = React.useRef(null);
1217
- var clearSelection = function clearSelection() {
1218
- if (dataGridRef.current) {
1219
- var selectedRowKeys = dataGridRef.current.instance.getSelectedRowKeys();
1220
- if (selectedRowKeys.length > 0) {
1221
- debugger;
1222
- dataGridRef.current.instance.clearSelection();
1223
- dataGridRef.current.instance.deselectAll();
1224
- }
1225
- }
1226
- };
1227
- React.useEffect(function () {
1228
- clearSelection();
1229
- }, []);
1230
1217
  return grid(props, dataGridRef);
1231
1218
  }
1232
1219
  function grid(props, dataGridRef) {
@@ -1272,6 +1259,7 @@ function grid(props, dataGridRef) {
1272
1259
  var clearAllFilters = function clearAllFilters() {
1273
1260
  if (dataGridRef.current) {
1274
1261
  dataGridRef.current.instance.clearFilter();
1262
+ dataGridRef.current.instance.deselectAll();
1275
1263
  }
1276
1264
  };
1277
1265
  return React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {