downshift 6.1.11 → 6.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/downshift.cjs.js +4 -4
- package/dist/downshift.esm.js +4 -4
- package/dist/downshift.native.cjs.js +4 -4
- package/dist/downshift.umd.js +4 -4
- package/dist/downshift.umd.js.map +1 -1
- package/dist/downshift.umd.min.js +1 -1
- package/dist/downshift.umd.min.js.map +1 -1
- package/package.json +2 -1
- package/preact/dist/downshift.cjs.js +4 -4
- package/preact/dist/downshift.esm.js +4 -4
- package/preact/dist/downshift.umd.js +4 -4
- package/preact/dist/downshift.umd.js.map +1 -1
- package/preact/dist/downshift.umd.min.js +1 -1
- package/preact/dist/downshift.umd.min.js.map +1 -1
package/dist/downshift.cjs.js
CHANGED
|
@@ -3529,6 +3529,7 @@ function useCombobox(userProps) {
|
|
|
3529
3529
|
refKey = 'ref',
|
|
3530
3530
|
ref,
|
|
3531
3531
|
onMouseMove,
|
|
3532
|
+
onMouseDown,
|
|
3532
3533
|
onClick,
|
|
3533
3534
|
onPress,
|
|
3534
3535
|
disabled,
|
|
@@ -3565,12 +3566,10 @@ function useCombobox(userProps) {
|
|
|
3565
3566
|
type: ItemClick,
|
|
3566
3567
|
index
|
|
3567
3568
|
});
|
|
3568
|
-
|
|
3569
|
-
if (inputRef.current) {
|
|
3570
|
-
inputRef.current.focus();
|
|
3571
|
-
}
|
|
3572
3569
|
};
|
|
3573
3570
|
|
|
3571
|
+
const itemHandleMouseDown = e => e.preventDefault();
|
|
3572
|
+
|
|
3574
3573
|
return {
|
|
3575
3574
|
[refKey]: handleRefs(ref, itemNode => {
|
|
3576
3575
|
if (itemNode) {
|
|
@@ -3585,6 +3584,7 @@ function useCombobox(userProps) {
|
|
|
3585
3584
|
[onSelectKey]: callAllEventHandlers(customClickHandler, itemHandleClick)
|
|
3586
3585
|
}),
|
|
3587
3586
|
onMouseMove: callAllEventHandlers(onMouseMove, itemHandleMouseMove),
|
|
3587
|
+
onMouseDown: callAllEventHandlers(onMouseDown, itemHandleMouseDown),
|
|
3588
3588
|
...rest
|
|
3589
3589
|
};
|
|
3590
3590
|
}, [dispatch, latest, shouldScrollRef, elementIds]);
|
package/dist/downshift.esm.js
CHANGED
|
@@ -3520,6 +3520,7 @@ function useCombobox(userProps) {
|
|
|
3520
3520
|
refKey = 'ref',
|
|
3521
3521
|
ref,
|
|
3522
3522
|
onMouseMove,
|
|
3523
|
+
onMouseDown,
|
|
3523
3524
|
onClick,
|
|
3524
3525
|
onPress,
|
|
3525
3526
|
disabled,
|
|
@@ -3556,12 +3557,10 @@ function useCombobox(userProps) {
|
|
|
3556
3557
|
type: ItemClick,
|
|
3557
3558
|
index
|
|
3558
3559
|
});
|
|
3559
|
-
|
|
3560
|
-
if (inputRef.current) {
|
|
3561
|
-
inputRef.current.focus();
|
|
3562
|
-
}
|
|
3563
3560
|
};
|
|
3564
3561
|
|
|
3562
|
+
const itemHandleMouseDown = e => e.preventDefault();
|
|
3563
|
+
|
|
3565
3564
|
return {
|
|
3566
3565
|
[refKey]: handleRefs(ref, itemNode => {
|
|
3567
3566
|
if (itemNode) {
|
|
@@ -3576,6 +3575,7 @@ function useCombobox(userProps) {
|
|
|
3576
3575
|
[onSelectKey]: callAllEventHandlers(customClickHandler, itemHandleClick)
|
|
3577
3576
|
}),
|
|
3578
3577
|
onMouseMove: callAllEventHandlers(onMouseMove, itemHandleMouseMove),
|
|
3578
|
+
onMouseDown: callAllEventHandlers(onMouseDown, itemHandleMouseDown),
|
|
3579
3579
|
...rest
|
|
3580
3580
|
};
|
|
3581
3581
|
}, [dispatch, latest, shouldScrollRef, elementIds]);
|
|
@@ -3460,6 +3460,7 @@ function useCombobox(userProps) {
|
|
|
3460
3460
|
refKey = 'ref',
|
|
3461
3461
|
ref,
|
|
3462
3462
|
onMouseMove,
|
|
3463
|
+
onMouseDown,
|
|
3463
3464
|
onClick,
|
|
3464
3465
|
onPress,
|
|
3465
3466
|
disabled,
|
|
@@ -3498,12 +3499,10 @@ function useCombobox(userProps) {
|
|
|
3498
3499
|
type: ItemClick,
|
|
3499
3500
|
index
|
|
3500
3501
|
});
|
|
3501
|
-
|
|
3502
|
-
if (inputRef.current) {
|
|
3503
|
-
inputRef.current.focus();
|
|
3504
|
-
}
|
|
3505
3502
|
};
|
|
3506
3503
|
|
|
3504
|
+
const itemHandleMouseDown = e => e.preventDefault();
|
|
3505
|
+
|
|
3507
3506
|
return {
|
|
3508
3507
|
[refKey]: handleRefs(ref, itemNode => {
|
|
3509
3508
|
if (itemNode) {
|
|
@@ -3518,6 +3517,7 @@ function useCombobox(userProps) {
|
|
|
3518
3517
|
[onSelectKey]: callAllEventHandlers(customClickHandler, itemHandleClick)
|
|
3519
3518
|
}),
|
|
3520
3519
|
onMouseMove: callAllEventHandlers(onMouseMove, itemHandleMouseMove),
|
|
3520
|
+
onMouseDown: callAllEventHandlers(onMouseDown, itemHandleMouseDown),
|
|
3521
3521
|
...rest
|
|
3522
3522
|
};
|
|
3523
3523
|
}, [dispatch, latest, shouldScrollRef, elementIds]);
|
package/dist/downshift.umd.js
CHANGED
|
@@ -4797,6 +4797,7 @@
|
|
|
4797
4797
|
refKey = 'ref',
|
|
4798
4798
|
ref,
|
|
4799
4799
|
onMouseMove,
|
|
4800
|
+
onMouseDown,
|
|
4800
4801
|
onClick,
|
|
4801
4802
|
onPress,
|
|
4802
4803
|
disabled,
|
|
@@ -4833,12 +4834,10 @@
|
|
|
4833
4834
|
type: ItemClick,
|
|
4834
4835
|
index
|
|
4835
4836
|
});
|
|
4836
|
-
|
|
4837
|
-
if (inputRef.current) {
|
|
4838
|
-
inputRef.current.focus();
|
|
4839
|
-
}
|
|
4840
4837
|
};
|
|
4841
4838
|
|
|
4839
|
+
const itemHandleMouseDown = e => e.preventDefault();
|
|
4840
|
+
|
|
4842
4841
|
return {
|
|
4843
4842
|
[refKey]: handleRefs(ref, itemNode => {
|
|
4844
4843
|
if (itemNode) {
|
|
@@ -4853,6 +4852,7 @@
|
|
|
4853
4852
|
[onSelectKey]: callAllEventHandlers(customClickHandler, itemHandleClick)
|
|
4854
4853
|
}),
|
|
4855
4854
|
onMouseMove: callAllEventHandlers(onMouseMove, itemHandleMouseMove),
|
|
4855
|
+
onMouseDown: callAllEventHandlers(onMouseDown, itemHandleMouseDown),
|
|
4856
4856
|
...rest
|
|
4857
4857
|
};
|
|
4858
4858
|
}, [dispatch, latest, shouldScrollRef, elementIds]);
|