survey-analytics 2.3.3 → 2.3.4

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.3.3
2
+ * surveyjs - SurveyJS Dashboard library v2.3.4
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.3.3
2
+ * surveyjs - SurveyJS Dashboard library v2.3.4
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.3.3
2
+ * surveyjs - SurveyJS Dashboard library v2.3.4
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -280,9 +280,12 @@ TableExtensions.registerExtension({
280
280
  render: function (table, options) {
281
281
  const btn = DocumentHelper.createElement("button", "sa-table__svg-button sa-table__drag-button");
282
282
  btn.appendChild(DocumentHelper.createSvgElement("drag"));
283
- btn.onmousedown = (e) => {
283
+ btn.addEventListener("mousedown", () => {
284
284
  table.enableColumnReorder();
285
- };
285
+ document.body.addEventListener("mouseup", () => {
286
+ table.disableColumnReorder();
287
+ }, { once: true });
288
+ });
286
289
  return btn;
287
290
  },
288
291
  });
@@ -1383,14 +1386,11 @@ class Tabulator extends Table {
1383
1386
  var actions = this.getHeaderActions(columnName);
1384
1387
  container.appendChild(actions);
1385
1388
  container.appendChild(title);
1386
- container.onmousedown = (e) => {
1389
+ ["mousemove", "mousedown"].forEach(eventName => actions.addEventListener(eventName, (event) => {
1387
1390
  if (!this.isColumnReorderEnabled) {
1388
- e.stopPropagation();
1391
+ event.stopPropagation();
1389
1392
  }
1390
- else {
1391
- this.disableColumnReorder();
1392
- }
1393
- };
1393
+ }));
1394
1394
  return container;
1395
1395
  }
1396
1396
  getHeaderActions(columnName) {