This repository was archived by the owner on Aug 3, 2022. It is now read-only.
Commit 8d51535
committed
fixed bug #6 with switch not toggling with state prop update
Previously when the state prop changed due to an update in the parent component, the switch would not toggle to the correct position. Now, with the use of componentWillReceiveProps, we pass the state prop to the value() method so it can be updated. This will probably work with other, currently immutable props.1 parent 764023f commit 8d51535
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
0 commit comments