You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/hooks/utils.js
+7-8
Original file line number
Diff line number
Diff line change
@@ -359,15 +359,15 @@ function getHighlightedIndexOnOpen(props, state, offset) {
359
359
/**
360
360
* Tracks mouse and touch events, such as mouseDown, touchMove and touchEnd.
361
361
*
362
-
* @param {Object} environment The environment to add the event listeners to, for instance window.
363
-
* @param {Array<HTMLElement>} downshiftElementRefs The refs for the element that should not trigger a blur action from mouseDown or touchEnd.
364
-
* @param {Function} handleBlur The function that is called if mouseDown or touchEnd occured outside the downshiftElements.
365
-
* @returns {Object} The mouse and touch events information, if any of are happening.
362
+
* @param {Window} environment The environment to add the event listeners to, for instance window.
363
+
* @param {() => void} handleBlur The function that is called if mouseDown or touchEnd occured outside the downshiftElements.
364
+
* @param {Array<{current: HTMLElement}>} downshiftElementsRefs The refs for the elements that should not trigger a blur action from mouseDown or touchEnd.
365
+
* @returns {{isMouseDown: boolean, isTouchMove: boolean, isTouchEnd: boolean}} The mouse and touch events information, if any of are happening.
366
366
*/
367
367
functionuseMouseAndTouchTracker(
368
368
environment,
369
-
downshiftElementRefs,
370
369
handleBlur,
370
+
downshiftElementsRefs,
371
371
){
372
372
constmouseAndTouchTrackersRef=useRef({
373
373
isMouseDown: false,
@@ -380,7 +380,7 @@ function useMouseAndTouchTracker(
0 commit comments