Skip to content

Commit

Permalink
Added the missing 'onChange' for ToggleInput; to reflect the old impl…
Browse files Browse the repository at this point in the history
…ementation

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
  • Loading branch information
ketsappi authored and J-Kallunki committed Nov 11, 2019
1 parent 610f7c1 commit 851cfbe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Form/ToggleInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export class ToggleInput extends Component<ToggleProps> {
{...passProps}
type="checkbox"
checked={!!toggleState}
onChange={this.handleClick}
/>
)}
<HtmlLabel
Expand Down

0 comments on commit 851cfbe

Please sign in to comment.