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

This commit is contained in:
Trevor Smith committed 2016-04-07 16:42:50 -06:00
1 parent b102e25663
commit 8577600a61
1 file changed
+1 -1
@@ -39,7 +39,7 @@ var ReactDOMOption = {
selectParent = selectParent._nativeParent;
}
if (selectParent._tag === 'select') {
if (selectParent != null && selectParent._tag === 'select') {
selectValue = ReactDOMSelect.getSelectValueContext(selectParent);
}
}