Open Barno opened 1 year ago
Hi, same here, why is the Select component rendered as a button, ul, li, and even if it is rendered as such why does onChange return a string and not an event? Please help. I'm trying to work with React Hook Forms (register & controller).
I'd like to understand how to retrieve the Select name.
My component is (partial)
but I got an error, because onChange return only the value selected. The Select rendered as button and ul li
I create this workaround but it's not a good solution
is it possible to retrieve ,e.target.name, e.target.value?