Skip to content

Commit

Permalink
more check
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Feb 26, 2021
1 parent 68238cc commit 42adb80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-dom/src/client/getActiveElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

export default function getActiveElement(doc: ?Document): ?Element {
doc = doc || (typeof document !== 'undefined' ? document : undefined);
if (typeof doc === 'undefined') {
if (typeof doc === 'undefined' || doc === null) {
return null;
}
try {
Expand Down

0 comments on commit 42adb80

Please sign in to comment.