diff --git a/.changeset/serious-toes-remember.md b/.changeset/serious-toes-remember.md new file mode 100644 index 00000000000..9794f9001b4 --- /dev/null +++ b/.changeset/serious-toes-remember.md @@ -0,0 +1,5 @@ +--- +'@talend/design-system': patch +--- + +fix(TDOPS-5582/designSystem): checkbox state change on click diff --git a/packages/design-system/src/components/Form/Field/Input/Input.ToggleSwitch.tsx b/packages/design-system/src/components/Form/Field/Input/Input.ToggleSwitch.tsx index a3990b7420b..080884228f1 100644 --- a/packages/design-system/src/components/Form/Field/Input/Input.ToggleSwitch.tsx +++ b/packages/design-system/src/components/Form/Field/Input/Input.ToggleSwitch.tsx @@ -33,6 +33,7 @@ export const ToggleSwitch = forwardRef( onChangeKey: 'onChange', valueKey: 'checked', defaultValueKey: 'defaultChecked', + selector: e => e.target.checked, defaultValue: false, });