You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.The text was updated successfully, but these errors were encountered: