Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

onChange or onSelection? Is this a bug?

ANSWERED

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

 

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Thanks for the feedback!

View best answer in original post

Best Answer
0 Votes
1 REPLY 1

Thanks for the feedback!

Best Answer
0 Votes