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.
- package/dist/AccessibilityWidget/index.js +6 -1
- package/dist/AccessibilityWidget/index.js.map +1 -1
- package/dist/AccessibilityWidget/index.mjs +6 -1
- package/dist/AccessibilityWidget/index.mjs.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -500,9 +500,14 @@ var ToggleSwitch = ({
|
|
|
500
500
|
role: "switch",
|
|
501
501
|
"aria-checked": checked,
|
|
502
502
|
disabled,
|
|
503
|
-
onClick: onChange,
|
|
504
503
|
className: trackClasses,
|
|
505
504
|
...props,
|
|
505
|
+
onClick: (e) => {
|
|
506
|
+
props.onClick?.(e);
|
|
507
|
+
if (!e.defaultPrevented) {
|
|
508
|
+
onChange?.();
|
|
509
|
+
}
|
|
510
|
+
},
|
|
506
511
|
children: /* @__PURE__ */ jsx6("span", { className: thumbClasses })
|
|
507
512
|
}
|
|
508
513
|
);
|