I'm trying to change All to the text of whatever basisList is selected. I am able to correctly update it to Users (ID) using componentWillMount().
My problem is, if I change the basisList that is selected to machines which calls this.updateResolutionText() does not cause select2 to re-render. I can see that my state has been updated correctly, however select2 isn't updating.
What am I missing? I would think that by updating this.state.resolutionOptions that my select2 component would automatically update, thus displaying the new text.
I'm trying to change All to the text of whatever
basisList
is selected. I am able to correctly update it to Users (ID) usingcomponentWillMount()
.My problem is, if I change the
basisList
that is selected tomachines
which callsthis.updateResolutionText()
does not cause select2 to re-render. I can see that my state has been updated correctly, however select2 isn't updating.What am I missing? I would think that by updating
this.state.resolutionOptions
that my select2 component would automatically update, thus displaying the new text.