downshift 8.0.0 → 8.0.2
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 +2 -4
- package/dist/downshift.esm.js +2 -4
- package/dist/downshift.native.cjs.js +2 -4
- package/dist/downshift.nativeweb.cjs.js +2 -4
- package/dist/downshift.umd.js +2 -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 +1 -2
- package/preact/dist/downshift.cjs.js +2 -4
- package/preact/dist/downshift.esm.js +2 -4
- package/preact/dist/downshift.umd.js +2 -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/typings/index.d.ts +2 -3
package/dist/downshift.cjs.js
CHANGED
|
@@ -2972,9 +2972,7 @@ function useCombobox(userProps) {
|
|
|
2972
2972
|
validatePropTypes$1(userProps, useCombobox);
|
|
2973
2973
|
// Props defaults and destructuring.
|
|
2974
2974
|
var props = _extends__default["default"]({}, defaultProps$1, userProps);
|
|
2975
|
-
var
|
|
2976
|
-
defaultIsOpen = props.defaultIsOpen,
|
|
2977
|
-
items = props.items,
|
|
2975
|
+
var items = props.items,
|
|
2978
2976
|
scrollIntoView = props.scrollIntoView,
|
|
2979
2977
|
environment = props.environment,
|
|
2980
2978
|
getA11yStatusMessage = props.getA11yStatusMessage,
|
|
@@ -3042,7 +3040,7 @@ function useCombobox(userProps) {
|
|
|
3042
3040
|
});
|
|
3043
3041
|
// Focus the input on first render if required.
|
|
3044
3042
|
React.useEffect(function () {
|
|
3045
|
-
var focusOnOpen =
|
|
3043
|
+
var focusOnOpen = getInitialValue$1(props, 'isOpen');
|
|
3046
3044
|
if (focusOnOpen && inputRef.current) {
|
|
3047
3045
|
inputRef.current.focus();
|
|
3048
3046
|
}
|
package/dist/downshift.esm.js
CHANGED
|
@@ -2958,9 +2958,7 @@ function useCombobox(userProps) {
|
|
|
2958
2958
|
validatePropTypes$1(userProps, useCombobox);
|
|
2959
2959
|
// Props defaults and destructuring.
|
|
2960
2960
|
var props = _extends({}, defaultProps$1, userProps);
|
|
2961
|
-
var
|
|
2962
|
-
defaultIsOpen = props.defaultIsOpen,
|
|
2963
|
-
items = props.items,
|
|
2961
|
+
var items = props.items,
|
|
2964
2962
|
scrollIntoView = props.scrollIntoView,
|
|
2965
2963
|
environment = props.environment,
|
|
2966
2964
|
getA11yStatusMessage = props.getA11yStatusMessage,
|
|
@@ -3028,7 +3026,7 @@ function useCombobox(userProps) {
|
|
|
3028
3026
|
});
|
|
3029
3027
|
// Focus the input on first render if required.
|
|
3030
3028
|
useEffect(function () {
|
|
3031
|
-
var focusOnOpen =
|
|
3029
|
+
var focusOnOpen = getInitialValue$1(props, 'isOpen');
|
|
3032
3030
|
if (focusOnOpen && inputRef.current) {
|
|
3033
3031
|
inputRef.current.focus();
|
|
3034
3032
|
}
|
|
@@ -2895,9 +2895,7 @@ function useCombobox(userProps) {
|
|
|
2895
2895
|
validatePropTypes$1(userProps, useCombobox);
|
|
2896
2896
|
// Props defaults and destructuring.
|
|
2897
2897
|
var props = _extends__default["default"]({}, defaultProps$1, userProps);
|
|
2898
|
-
var
|
|
2899
|
-
defaultIsOpen = props.defaultIsOpen,
|
|
2900
|
-
items = props.items,
|
|
2898
|
+
var items = props.items,
|
|
2901
2899
|
scrollIntoView = props.scrollIntoView,
|
|
2902
2900
|
environment = props.environment,
|
|
2903
2901
|
getA11yStatusMessage = props.getA11yStatusMessage,
|
|
@@ -2965,7 +2963,7 @@ function useCombobox(userProps) {
|
|
|
2965
2963
|
});
|
|
2966
2964
|
// Focus the input on first render if required.
|
|
2967
2965
|
React.useEffect(function () {
|
|
2968
|
-
var focusOnOpen =
|
|
2966
|
+
var focusOnOpen = getInitialValue$1(props, 'isOpen');
|
|
2969
2967
|
if (focusOnOpen && inputRef.current) {
|
|
2970
2968
|
inputRef.current.focus();
|
|
2971
2969
|
}
|
|
@@ -2955,9 +2955,7 @@ function useCombobox(userProps) {
|
|
|
2955
2955
|
validatePropTypes$1(userProps, useCombobox);
|
|
2956
2956
|
// Props defaults and destructuring.
|
|
2957
2957
|
var props = _extends__default["default"]({}, defaultProps$1, userProps);
|
|
2958
|
-
var
|
|
2959
|
-
defaultIsOpen = props.defaultIsOpen,
|
|
2960
|
-
items = props.items,
|
|
2958
|
+
var items = props.items,
|
|
2961
2959
|
scrollIntoView = props.scrollIntoView,
|
|
2962
2960
|
environment = props.environment,
|
|
2963
2961
|
getA11yStatusMessage = props.getA11yStatusMessage,
|
|
@@ -3025,7 +3023,7 @@ function useCombobox(userProps) {
|
|
|
3025
3023
|
});
|
|
3026
3024
|
// Focus the input on first render if required.
|
|
3027
3025
|
React.useEffect(function () {
|
|
3028
|
-
var focusOnOpen =
|
|
3026
|
+
var focusOnOpen = getInitialValue$1(props, 'isOpen');
|
|
3029
3027
|
if (focusOnOpen && inputRef.current) {
|
|
3030
3028
|
inputRef.current.focus();
|
|
3031
3029
|
}
|
package/dist/downshift.umd.js
CHANGED
|
@@ -4292,9 +4292,7 @@
|
|
|
4292
4292
|
validatePropTypes$1(userProps, useCombobox);
|
|
4293
4293
|
// Props defaults and destructuring.
|
|
4294
4294
|
var props = _extends({}, defaultProps$1, userProps);
|
|
4295
|
-
var
|
|
4296
|
-
defaultIsOpen = props.defaultIsOpen,
|
|
4297
|
-
items = props.items,
|
|
4295
|
+
var items = props.items,
|
|
4298
4296
|
scrollIntoView = props.scrollIntoView,
|
|
4299
4297
|
environment = props.environment,
|
|
4300
4298
|
getA11yStatusMessage = props.getA11yStatusMessage,
|
|
@@ -4362,7 +4360,7 @@
|
|
|
4362
4360
|
});
|
|
4363
4361
|
// Focus the input on first render if required.
|
|
4364
4362
|
React.useEffect(function () {
|
|
4365
|
-
var focusOnOpen =
|
|
4363
|
+
var focusOnOpen = getInitialValue$1(props, 'isOpen');
|
|
4366
4364
|
if (focusOnOpen && inputRef.current) {
|
|
4367
4365
|
inputRef.current.focus();
|
|
4368
4366
|
}
|