swap places of mounted and pending update checks
prevents a type error if the component isn't mounted
Igor Scekic committed
Aug 13, 2015 at 16:34 UTC
0e834fabca4cf2cb48ae085a3dde427b3aad8e11
1 file changed
+1
-1
src/renderers/dom/client/wrappers/ReactDOMSelect.js
+1
-1
@@ -22,7 +22,7 @@ var valueContextKey =
22
'__ReactDOMSelect_value$' + Math.random().toString(36).slice(2);
23
24
function updateOptionsIfPendingUpdateAndMounted() {
25
- if (this._wrapperState.pendingUpdate && this._rootNodeID) {
25
+ if (this._rootNodeID && this._wrapperState.pendingUpdate) {
26
this._wrapperState.pendingUpdate = false;
27
28
var props = this._currentElement.props;