Skip to content

Commit 612a768

Browse files
authored
[react-interactions] Mock touchend events should use empty array for 'touches' (#17589)
The 'touches' value should be an empty array rather than 'null'
1 parent 12c0004 commit 612a768

File tree

1 file changed

+1
-1
lines changed
  • packages/react-interactions/events/src/dom/testing-library

1 file changed

+1
-1
lines changed

packages/react-interactions/events/src/dom/testing-library/domEvents.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ function createTouchEvent(type, payload) {
273273
},
274274
);
275275

276-
const activeTouches = type !== 'touchend' ? touches : null;
276+
const activeTouches = type !== 'touchend' ? touches : [];
277277

278278
return createEvent(type, {
279279
altKey,

0 commit comments

Comments
 (0)