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.
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
Thanks for the feedback!
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.