downshift 8.1.0 → 8.1.1
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 +1 -1
- package/dist/downshift.esm.js +1 -1
- package/dist/downshift.native.cjs.js +1 -1
- package/dist/downshift.nativeweb.cjs.js +1 -1
- package/dist/downshift.umd.js +1 -1
- package/dist/downshift.umd.js.map +1 -1
- package/package.json +1 -1
- package/preact/dist/downshift.cjs.js +1 -1
- package/preact/dist/downshift.esm.js +1 -1
- package/preact/dist/downshift.umd.js +1 -1
- package/preact/dist/downshift.umd.js.map +1 -1
- package/typings/index.d.ts +9 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "downshift",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.1",
|
|
4
4
|
"description": "🏎 A set of primitives to build simple, flexible, WAI-ARIA compliant React autocomplete, combobox or select dropdown components.",
|
|
5
5
|
"main": "dist/downshift.cjs.js",
|
|
6
6
|
"react-native": "dist/downshift.native.cjs.js",
|
|
@@ -3043,7 +3043,7 @@ function useCombobox(userProps) {
|
|
|
3043
3043
|
itemRefs.current = {};
|
|
3044
3044
|
} else if (((_environment$document = environment.document) == null ? void 0 : _environment$document.activeElement) !== inputRef.current) {
|
|
3045
3045
|
var _inputRef$current;
|
|
3046
|
-
inputRef == null || (_inputRef$current = inputRef.current) == null
|
|
3046
|
+
inputRef == null || (_inputRef$current = inputRef.current) == null || _inputRef$current.focus();
|
|
3047
3047
|
}
|
|
3048
3048
|
}, [isOpen, environment]);
|
|
3049
3049
|
|
|
@@ -3029,7 +3029,7 @@ function useCombobox(userProps) {
|
|
|
3029
3029
|
itemRefs.current = {};
|
|
3030
3030
|
} else if (((_environment$document = environment.document) == null ? void 0 : _environment$document.activeElement) !== inputRef.current) {
|
|
3031
3031
|
var _inputRef$current;
|
|
3032
|
-
inputRef == null || (_inputRef$current = inputRef.current) == null
|
|
3032
|
+
inputRef == null || (_inputRef$current = inputRef.current) == null || _inputRef$current.focus();
|
|
3033
3033
|
}
|
|
3034
3034
|
}, [isOpen, environment]);
|
|
3035
3035
|
|
|
@@ -3344,7 +3344,7 @@
|
|
|
3344
3344
|
itemRefs.current = {};
|
|
3345
3345
|
} else if (((_environment$document = environment.document) == null ? void 0 : _environment$document.activeElement) !== inputRef.current) {
|
|
3346
3346
|
var _inputRef$current;
|
|
3347
|
-
inputRef == null || (_inputRef$current = inputRef.current) == null
|
|
3347
|
+
inputRef == null || (_inputRef$current = inputRef.current) == null || _inputRef$current.focus();
|
|
3348
3348
|
}
|
|
3349
3349
|
}, [isOpen, environment]);
|
|
3350
3350
|
|