@samitouri / QOS-React / commits / 8577600a61

Add a null check when checking for the native parent of an option element.

Trevor Smith committed Apr 7, 2016 at 16:42 UTC 8577600a61a0d2e4712f86782a43daa5ce385e84
1 file changed +1 -1
src/renderers/dom/client/wrappers/ReactDOMOption.js
+1 -1
@@ -39,7 +39,7 @@ var ReactDOMOption = {
39 selectParent = selectParent._nativeParent;
40 }
41
42 - if (selectParent._tag === 'select') {
42 + if (selectParent != null && selectParent._tag === 'select') {
43 selectValue = ReactDOMSelect.getSelectValueContext(selectParent);
44 }
45 }