diff --git a/package.json b/package.json index 248da24..d5b72bf 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "LightPivotTable", "author": "ZitRo", - "version": "1.1.0", + "version": "1.1.1", "description": "A lightweight pivot table for MDX2JSON source for InterSystems Cache", "main": "test/testServer.js", "repository": { diff --git a/source/js/PivotView.js b/source/js/PivotView.js index 52b2900..2ef03d0 100644 --- a/source/js/PivotView.js +++ b/source/js/PivotView.js @@ -886,8 +886,14 @@ PivotView.prototype.renderRawData = function (data) { checkbox.setAttribute("type", "checkbox"); checkbox.checked = !!_.selectedRows[y]; th.setAttribute("style", "padding: 0 !important;"); - checkbox.addEventListener("change", (function (y) { return function (e) { - _.selectRow.call(_, (e.srcElement || e.target).checked, y); + checkbox.addEventListener("click", (function (y) { return function (e) { + var element = e.srcElement || e.target; + e.preventDefault(); + e.cancelBubble = true; + setTimeout(function () { // bad, but only working workaround for ISC DeepSee + element.checked = !element.checked; + _.selectRow.call(_, element.checked, y); + }, 1); }})(y)); th.appendChild(checkbox); tr.appendChild(th);