mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Add a null check when checking for the native parent of an option element.
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user