jsl-ui 9.26.5 → 9.26.7
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.
|
@@ -140,6 +140,10 @@ export function Overlays(options) {
|
|
|
140
140
|
if (grid.canCellBeSelected(cell.row, cell.cell)) {
|
|
141
141
|
handleDragging = true;
|
|
142
142
|
}
|
|
143
|
+
var column = grid.getColumns()[cell.cell];
|
|
144
|
+
if (column.editor == null || column.readonly || !grid.getOptions().editable) {
|
|
145
|
+
handleDragging = false;
|
|
146
|
+
}
|
|
143
147
|
if (!handleDragging) {
|
|
144
148
|
e.cancelEvent();
|
|
145
149
|
return null;
|
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
|
}
|