05-25-2020 22:26 - edited 05-25-2020 22:55
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-25-2020 22:26 - edited 05-25-2020 22:55
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.
Accepted Solutions
05-26-2020 13:54
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


05-26-2020 13:54
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thanks for the feedback!

05-26-2020 13:54
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


05-26-2020 13:54
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thanks for the feedback!

