jsl-ui 9.26.6 → 9.26.8
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/lib/grid/slick.grid.js +7 -3
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/grid/slick.grid.js
CHANGED
|
@@ -4296,7 +4296,9 @@ export function SlickGrid(container, data, columns, options) {
|
|
|
4296
4296
|
// read column number from .l<columnNumber> CSS class
|
|
4297
4297
|
var cls = /l\d+/.exec(cellNode.className);
|
|
4298
4298
|
if (!cls) {
|
|
4299
|
-
|
|
4299
|
+
console.warn("getCellFromNode: cannot get cell - " + cellNode.className);
|
|
4300
|
+
return null;
|
|
4301
|
+
// throw new Error("getCellFromNode: cannot get cell - " + cellNode.className);
|
|
4300
4302
|
}
|
|
4301
4303
|
return parseInt(cls[0].substr(1, cls[0].length - 1), 10);
|
|
4302
4304
|
}
|
|
@@ -5243,13 +5245,15 @@ export function SlickGrid(container, data, columns, options) {
|
|
|
5243
5245
|
}
|
|
5244
5246
|
function getSelectedRows() {
|
|
5245
5247
|
if (!selectionModel) {
|
|
5246
|
-
throw new Error("Selection model is not set");
|
|
5248
|
+
// throw new Error("Selection model is not set");
|
|
5249
|
+
return [];
|
|
5247
5250
|
}
|
|
5248
5251
|
return selectedRows;
|
|
5249
5252
|
}
|
|
5250
5253
|
function setSelectedRows(rows) {
|
|
5251
5254
|
if (!selectionModel) {
|
|
5252
|
-
throw new Error("Selection model is not set");
|
|
5255
|
+
// throw new Error("Selection model is not set");
|
|
5256
|
+
return;
|
|
5253
5257
|
}
|
|
5254
5258
|
// if (self && self.getEditorLock && !self.getEditorLock().isActive()) {
|
|
5255
5259
|
selectionModel.setSelectedRanges(rowsToRanges(rows));
|