Skip to content

Commit

Permalink
Update ReactDOM for react v16 compatibility
Browse files Browse the repository at this point in the history
It appears as is ReactDOM has been removed as of react v16. As a result, react-a11y throws the error "react-a11y: missing argument 'ReactDOM'". Updating the option check to look for `findDOMNode` instead.
  • Loading branch information
ebenpack authored and Erin Doyle committed Oct 12, 2017
1 parent b3130b4 commit b8f4e58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export default function (...args) {
}

// make sure ReactDOM is passed in in browser code
if (browser && !(ReactDOM && ReactDOM.version)) {
if (browser && !(ReactDOM && ReactDOM.findDOMNode)) {
throw new Error('react-a11y: missing argument `ReactDOM`');
}

Expand Down

0 comments on commit b8f4e58

Please sign in to comment.