Skip to content

Commit fe3f8a5

Browse files
committed
[enzyme-adapter-react-16] ensure that pointerEvents only exist in v16.4+
1 parent b74c951 commit fe3f8a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/enzyme-adapter-react-16/src/ReactSixteenAdapter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ function nodeToHostNode(_node) {
229229

230230
const eventOptions = {
231231
animation: true,
232-
pointerEvents: true, // 16.4+
232+
pointerEvents: !!React.unstable_Profiler, // proxy for 16.4+
233233
};
234234

235235
class ReactSixteenAdapter extends EnzymeAdapter {

0 commit comments

Comments
 (0)