Closed burakguneli closed 3 years ago
Adding a context
property to CheckboxInputItem
would be better, I think. We already have access to item
on onSelect
.
We probably should have swapped the order of parameters from the beginning as well:
onSelect: (item: CheckboxInputItem, name?: string) => void;
as the second argument, we might actually pass the whole event object instead of just name
we should add one parameter to
onSelect
so that instead of using only one string field we can use the whole context of the option