You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update PickerItem.tsx to allow values of type number (#74)
* Update PickerItem.tsx
Allow values for the picker to be strings or numbers, so that I don't have to do custom transformation logic on the values.
This is particularly useful for a picker for numeric values like height, where I really want to store it as a number and not a string.
* Update corresponding types for value in Picker.tsx to support string | number also
* Added type coersion in test. This works, but with this in mind it maybe better to allow the values to be generics if they aren't strings? Would be interested in thoughts
0 commit comments