[react-interactions] Mock touchend events should use empty array for 'touches' (#17589)

The 'touches' value should be an empty array rather than 'null'
This commit is contained in:
Nicolas Gallagher
2019-12-12 22:21:30 +00:00
committed by GitHub
parent 12c000412d
commit 612a76812f
@@ -273,7 +273,7 @@ function createTouchEvent(type, payload) {
},
);
const activeTouches = type !== 'touchend' ? touches : null;
const activeTouches = type !== 'touchend' ? touches : [];
return createEvent(type, {
altKey,