@flexem/fc-gui 3.0.0-alpha.111 → 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.
@@ -39384,7 +39384,7 @@ class switch_indicator_light_element_SwitchIndicatorLightElement extends conditi
39384
39384
  }
39385
39385
  else {
39386
39386
  this.checkElementPassword(false);
39387
- if (!this.model.useIndicatorLight && !this.isMobileMode) {
39387
+ if (!this.model.useIndicatorLight) {
39388
39388
  this.switchToState(1);
39389
39389
  }
39390
39390
  }
@@ -39396,7 +39396,9 @@ class switch_indicator_light_element_SwitchIndicatorLightElement extends conditi
39396
39396
  this.isWriteRestorationDownValue = true;
39397
39397
  }, 1000);
39398
39398
  }
39399
- on_event.preventDefault();
39399
+ if (on_event && on_event.cancelable) {
39400
+ on_event.preventDefault();
39401
+ }
39400
39402
  }
39401
39403
  });
39402
39404
  this.rootElement.on(this.isMobileMode && isMobile ? 'touchend' : 'mouseup', () => {
@@ -39424,9 +39426,9 @@ class switch_indicator_light_element_SwitchIndicatorLightElement extends conditi
39424
39426
  document.removeEventListener(this.isMobileMode ? 'touchend' : 'mouseup', this.onDocMouseUp);
39425
39427
  this.isVerifiedForRestoration = false;
39426
39428
  this.isWriteRestorationDownValue = false;
39427
- if (!this.model.useIndicatorLight && !this.isMobileMode) {
39429
+ if (!this.model.useIndicatorLight) {
39428
39430
  this.switchToState(0);
39429
- if (on_event) {
39431
+ if (on_event && on_event.cancelable) {
39430
39432
  on_event.preventDefault();
39431
39433
  }
39432
39434
  }