ods-component-lib 1.17.10 → 1.17.11
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 +4 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1214,10 +1214,13 @@ var customizeBooleanColumnRender = function customizeBooleanColumnRender(e) {
|
|
|
1214
1214
|
};
|
|
1215
1215
|
function OdsDataGrid(props) {
|
|
1216
1216
|
var dataGridRef = React.useRef(null);
|
|
1217
|
-
|
|
1217
|
+
var clearSelection = function clearSelection() {
|
|
1218
1218
|
if (dataGridRef.current) {
|
|
1219
1219
|
dataGridRef.current.instance.clearSelection();
|
|
1220
1220
|
}
|
|
1221
|
+
};
|
|
1222
|
+
React.useEffect(function () {
|
|
1223
|
+
clearSelection();
|
|
1221
1224
|
}, []);
|
|
1222
1225
|
return grid(props, dataGridRef);
|
|
1223
1226
|
}
|