[react-interactions] Mock touchend events should use empty array for 'touches' (#17589)
The 'touches' value should be an empty array rather than 'null'
Nicolas Gallagher committed
Dec 12, 2019 at 22:21 UTC
612a76812fce2354aa37e8cbcc1b39bba3e9a97b
1 file changed
+1
-1
packages/react-interactions/events/src/dom/testing-library/domEvents.js
+1
-1
@@ -273,7 +273,7 @@ function createTouchEvent(type, payload) {
273
},
274
);
275
276
- const activeTouches = type !== 'touchend' ? touches : null;
276
+ const activeTouches = type !== 'touchend' ? touches : [];
277
278
return createEvent(type, {
279
altKey,