canvas-datagrid 0.4.1 → 0.4.2
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/CHANGELOG.md +7 -0
- package/dist/canvas-datagrid.debug.js +8 -1
- package/dist/canvas-datagrid.debug.map +1 -1
- package/dist/canvas-datagrid.js +1 -1
- package/dist/canvas-datagrid.module.js +1 -1
- package/dist/canvas-datagrid.module.js.map +1 -1
- package/lib/events/index.js +8 -0
- package/lib/intf.js +1 -1
- package/package.json +1 -1
package/lib/events/index.js
CHANGED
|
@@ -455,6 +455,14 @@ export default function (self) {
|
|
|
455
455
|
if (self.contextMenu || self.input) {
|
|
456
456
|
return;
|
|
457
457
|
}
|
|
458
|
+
|
|
459
|
+
// Cancel dragging action if user ventures outside grid
|
|
460
|
+
if (self.draggingItem && e.which === 0) {
|
|
461
|
+
self.stopFreezeMove(e);
|
|
462
|
+
self.mouseup(e);
|
|
463
|
+
return;
|
|
464
|
+
}
|
|
465
|
+
|
|
458
466
|
self.mouse = overridePos || self.getLayerPos(e);
|
|
459
467
|
var ctrl =
|
|
460
468
|
(e.ctrlKey || e.metaKey || self.attributes.persistantSelectionMode) &&
|
package/lib/intf.js
CHANGED
|
@@ -364,7 +364,7 @@ export default function (self, ctor) {
|
|
|
364
364
|
);
|
|
365
365
|
const columnName = schema[boundColumnIndex].name;
|
|
366
366
|
|
|
367
|
-
self.
|
|
367
|
+
self.originalData[boundRowIndex][columnName] = '';
|
|
368
368
|
|
|
369
369
|
affectedCells.push([
|
|
370
370
|
rowIndex,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "canvas-datagrid",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "Canvas based data grid web component. Capable of displaying millions of contiguous hierarchical rows and columns without paging or loading, on a single canvas element.",
|
|
5
5
|
"main": "./dist/canvas-datagrid.js",
|
|
6
6
|
"module": "./dist/canvas-datagrid.module.js",
|