mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +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:
1 parent
12c000412d
commit
612a76812f
1 file changed
+1
-1
@@ -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