I have dependent fields like this
We are using this wrapper, but there are too many problems around it.
First of all, you can't test code where it is used in NodeJS, because of this issue.
Secondly we had problems with initialization of various select2 components via defaultValue
parameter. Only one (randomly) of these elements was initalized.
Therefore we going to dump it and replace with react-select
soon.
EDIT: We replaced react-select2-wrapper
with react-select
. It works great for us.