mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
swap places of mounted and pending update checks
prevents a type error if the component isn't mounted
This commit is contained in:
@@ -22,7 +22,7 @@ var valueContextKey =
|
||||
'__ReactDOMSelect_value$' + Math.random().toString(36).slice(2);
|
||||
|
||||
function updateOptionsIfPendingUpdateAndMounted() {
|
||||
if (this._wrapperState.pendingUpdate && this._rootNodeID) {
|
||||
if (this._rootNodeID && this._wrapperState.pendingUpdate) {
|
||||
this._wrapperState.pendingUpdate = false;
|
||||
|
||||
var props = this._currentElement.props;
|
||||
|
||||
Reference in New Issue
Block a user