C
C
campus12018-07-21 19:32:23
React
campus1, 2018-07-21 19:32:23

Why can't I set the value?

Hello. I have Select. On onChange I don't see event.target.name and I can't set the value in state.
How can I fix it?
Code - https://codesandbox.io/s/w2q3zwyl88

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-07-21
@campus1

Well, the cant is somewhere in the component. If you update the version of material-ui, everything will be OK .
UPD. Taken from the comments:

Update is not an option, this one is used in the project (
Too much will have to be rewritten

Update not to the latest version then. According to the changelog , this bug was fixed in version 1.0.0-beta.22 (in your example, the previous one, so I think there will be no particular problems).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question