Skip to content

Commit

Permalink
[enzyme-adapter-react-16] ensure that pointerEvents only exist in v16.4+
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Aug 23, 2018
1 parent b74c951 commit fe3f8a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ function nodeToHostNode(_node) {

const eventOptions = {
animation: true,
pointerEvents: true, // 16.4+
pointerEvents: !!React.unstable_Profiler, // proxy for 16.4+
};

class ReactSixteenAdapter extends EnzymeAdapter {
Expand Down

0 comments on commit fe3f8a5

Please sign in to comment.