ods-component-lib 1.17.12 → 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 +1 -11
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +2 -12
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1214,17 +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
|
-
dataGridRef.current.instance.clearSelection();
|
|
1222
|
-
}
|
|
1223
|
-
}
|
|
1224
|
-
};
|
|
1225
|
-
React.useEffect(function () {
|
|
1226
|
-
clearSelection();
|
|
1227
|
-
}, []);
|
|
1228
1217
|
return grid(props, dataGridRef);
|
|
1229
1218
|
}
|
|
1230
1219
|
function grid(props, dataGridRef) {
|
|
@@ -1270,6 +1259,7 @@ function grid(props, dataGridRef) {
|
|
|
1270
1259
|
var clearAllFilters = function clearAllFilters() {
|
|
1271
1260
|
if (dataGridRef.current) {
|
|
1272
1261
|
dataGridRef.current.instance.clearFilter();
|
|
1262
|
+
dataGridRef.current.instance.deselectAll();
|
|
1273
1263
|
}
|
|
1274
1264
|
};
|
|
1275
1265
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
|