05-25-2020 22:26 - edited 05-25-2020 22:55
05-25-2020 22:26 - edited 05-25-2020 22:55
Hi,
On https://dev.fitbit.com/build/reference/settings-api/
There's an example for <ColorSelect>
<ColorSelect
value={props.settings.color}
onChange={value => props.settingsStorage.setItem('color', value)}
/>
Then later the document lists properties of ColorSelect, only "onSelection" not "onChange", with another example.
Which one is available? If they are not both available then is this a bug in the document?
--------------------------------
Ok, I tried with an example, "onChange" is never called. "onSelection" is the correct one. Then this is a bug and the document should be corrected.
Bing
Answered! Go to the Best Answer.
05-26-2020 13:54
05-26-2020 13:54
Thanks for the feedback!
05-26-2020 13:54
05-26-2020 13:54
Thanks for the feedback!