-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
When using this toggle state, it takes 2 presses to turn from active to inactive the first time, if the value is initialised as active.
<Switch
value={true}
onChangeValue={(value) => {
console.log(value);
this.setState({ marginValue: !marginValue});
}}
/>
I can see it starts in the active manner because of value={true}, but when clicking it the first time, the value from the onChangeValue is also `true. After that, the value represents what I expect it to.
anagar23
Metadata
Metadata
Assignees
Labels
No labels