diff --git a/source/components/form/toggle-switch.mjs b/source/components/form/toggle-switch.mjs index c00374d9b901e1ba839cbb3120075e6641347e6d..cc5a45cc9047deff61cff17bfc15f62b42bdf38f 100644 --- a/source/components/form/toggle-switch.mjs +++ b/source/components/form/toggle-switch.mjs @@ -109,10 +109,10 @@ class ToggleSwitch extends CustomControl { }, actions: { on: () => { - throw new Error("the on action is not defined"); + }, off: () => { - throw new Error("the off action is not defined"); + }, }, });