ods-component-lib 1.17.9 → 1.17.10

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,6 +1214,11 @@ var customizeBooleanColumnRender = function customizeBooleanColumnRender(e) {
1214
1214
  };
1215
1215
  function OdsDataGrid(props) {
1216
1216
  var dataGridRef = React.useRef(null);
1217
+ React.useEffect(function () {
1218
+ if (dataGridRef.current) {
1219
+ dataGridRef.current.instance.clearSelection();
1220
+ }
1221
+ }, []);
1217
1222
  return grid(props, dataGridRef);
1218
1223
  }
1219
1224
  function grid(props, dataGridRef) {
@@ -1232,7 +1237,6 @@ function grid(props, dataGridRef) {
1232
1237
  };
1233
1238
  var fileName = props.exportFileName ? props.exportFileName + moment().format("YYYYMMDD") : "DatagridExportFile" + moment().format("YYYYMMDD");
1234
1239
  var onExporting = function onExporting(e) {
1235
- debugger;
1236
1240
  if (e.format === 'xlsx') {
1237
1241
  var workbook = new exceljs.Workbook();
1238
1242
  excel_exporter.exportDataGrid({