mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[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:
@@ -273,7 +273,7 @@ function createTouchEvent(type, payload) {
|
||||
},
|
||||
);
|
||||
|
||||
const activeTouches = type !== 'touchend' ? touches : null;
|
||||
const activeTouches = type !== 'touchend' ? touches : [];
|
||||
|
||||
return createEvent(type, {
|
||||
altKey,
|
||||
|
||||
Reference in New Issue
Block a user