Closed ewedlund closed 6 months ago
If you pass a function in the onChange prop, it will not be called. I think the Select component is passing the wrong prop to the underlying <select> component in
<select>
https://github.com/italia/design-react-kit/blob/2acd92f76fceae1f877d93099cabfb97fed92b98/src/Select/Select.tsx#L31C5-L31C17
I think
const inputProps = { disabled: disabled, handleChange: handleChange };
should be
const inputProps = { disabled: disabled, onChange: handleChange };
(at least this worked for me)
Thanks @Virtute90 for having solved this problem!
If you pass a function in the onChange prop, it will not be called. I think the Select component is passing the wrong prop to the underlying
<select>
component inhttps://github.com/italia/design-react-kit/blob/2acd92f76fceae1f877d93099cabfb97fed92b98/src/Select/Select.tsx#L31C5-L31C17
I think
should be
(at least this worked for me)