Skip to content

Commit b8f4e58

Browse files
ebenpackErin Doyle
authored andcommitted
Update ReactDOM for react v16 compatibility
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.
1 parent b3130b4 commit b8f4e58

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export default function (...args) {
134134
}
135135

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

0 commit comments

Comments
 (0)