Skip to content

Commit

Permalink
Less-specific prop type
Browse files Browse the repository at this point in the history
  • Loading branch information
mjackson committed Mar 4, 2019
1 parent f4081ae commit 481d2a1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/react-router-dom/modules/Link.js
Expand Up @@ -59,12 +59,10 @@ class Link extends React.Component {

if (__DEV__) {
const toType = PropTypes.oneOfType([PropTypes.string, PropTypes.object]);
// polyfill for Node
const Element = typeof Element === "undefined" ? function() {} : Element;
const innerRefType = PropTypes.oneOfType([
PropTypes.string,
PropTypes.func,
PropTypes.shape({ current: PropTypes.instanceOf(Element) })
PropTypes.shape({ current: PropTypes.any })
]);

Link.propTypes = {
Expand Down

0 comments on commit 481d2a1

Please sign in to comment.