analytica-frontend-lib 1.4.48 → 1.4.49

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.
@@ -510,9 +510,14 @@ var ToggleSwitch = ({
510
510
  role: "switch",
511
511
  "aria-checked": checked,
512
512
  disabled,
513
- onClick: onChange,
514
513
  className: trackClasses,
515
514
  ...props,
515
+ onClick: (e) => {
516
+ props.onClick?.(e);
517
+ if (!e.defaultPrevented) {
518
+ onChange?.();
519
+ }
520
+ },
516
521
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: thumbClasses })
517
522
  }
518
523
  );