@flexem/fc-gui 3.0.0-alpha.112 → 3.0.0-alpha.113

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.
@@ -72,7 +72,9 @@ export class SwitchIndicatorLightElement extends ConditionalEnableElement {
72
72
  this.isWriteRestorationDownValue = true;
73
73
  }, 1000);
74
74
  }
75
- d3.event.preventDefault();
75
+ if (d3.event && d3.event.cancelable) {
76
+ d3.event.preventDefault();
77
+ }
76
78
  }
77
79
  });
78
80
  this.rootElement.on(this.isMobileMode && isMobile ? 'touchend' : 'mouseup', () => {
@@ -102,7 +104,7 @@ export class SwitchIndicatorLightElement extends ConditionalEnableElement {
102
104
  this.isWriteRestorationDownValue = false;
103
105
  if (!this.model.useIndicatorLight) {
104
106
  this.switchToState(0);
105
- if (d3.event) {
107
+ if (d3.event && d3.event.cancelable) {
106
108
  d3.event.preventDefault();
107
109
  }
108
110
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "main": "bundles/fc-gui.umd.js",
3
- "version": "3.0.0-alpha.112",
3
+ "version": "3.0.0-alpha.113",
4
4
  "module": "public_api.js",
5
5
  "typings": "public_api.d.ts",
6
6
  "license": "UNLICENSED",