From 134f330ef6123230183a1564774928fbe8ad9b3f Mon Sep 17 00:00:00 2001 From: Sami Korpela Date: Thu, 24 Oct 2019 11:30:48 +0300 Subject: [PATCH] Added the missing 'onChange' for ToggleInput; to reflect the old implementation This seems to be the problematic place that was mentioned in the issue #154 of triggering twice when toggling. Will be fixed in separate PR --- src/components/Form/ToggleInput.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Form/ToggleInput.tsx b/src/components/Form/ToggleInput.tsx index b5b4ea52b..c0140d400 100644 --- a/src/components/Form/ToggleInput.tsx +++ b/src/components/Form/ToggleInput.tsx @@ -81,6 +81,7 @@ export class ToggleInput extends Component { {...passProps} type="checkbox" checked={!!toggleState} + onChange={this.handleClick} /> )}