Only enqueue attachRefs if refs are present
for #4036
Ben Alpert committed
Jun 4, 2015 at 22:57 UTC
c6837507f9970bc0870d6b54fae183003b384658
1 file changed
+3
-1
src/renderers/shared/reconciler/ReactReconciler.js
+3
-1
@@ -41,7 +41,9 @@ var ReactReconciler = {
41
internalInstance._currentElement
42
);
43
}
44
- transaction.getReactMountReady().enqueue(attachRefs, internalInstance);
44
+ if (internalInstance._currentElement.ref != null) {
45
+ transaction.getReactMountReady().enqueue(attachRefs, internalInstance);
46
+ }
47
return markup;
48
},
49