Skip to content

Commit

Permalink
[react-interactions] Mock touchend events should use empty array for …
Browse files Browse the repository at this point in the history
…'touches' (facebook#17589)

The 'touches' value should be an empty array rather than 'null'
  • Loading branch information
necolas authored Dec 12, 2019
1 parent 12c0004 commit 612a768
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ function createTouchEvent(type, payload) {
},
);

const activeTouches = type !== 'touchend' ? touches : null;
const activeTouches = type !== 'touchend' ? touches : [];

return createEvent(type, {
altKey,
Expand Down

0 comments on commit 612a768

Please sign in to comment.