We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 478af65 commit e71b0a1Copy full SHA for e71b0a1
src/lib/customPropTypes.js
@@ -10,6 +10,8 @@ const typeOf = (...args) => Object.prototype.toString.call(...args)
10
export const domNode = (props, propName) => {
11
// skip if prop is undefined
12
if (props[propName] === undefined) return
13
+ // short circle for SSR env
14
+ if (typeof Element === 'undefined') return
15
// skip if prop is valid
16
if (props[propName] instanceof Element) return
17
0 commit comments