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.
@@ -3082,7 +3082,7 @@ function useCombobox(userProps) {
3082
3082
  itemRefs.current = {};
3083
3083
  } else if (((_environment$document = environment.document) == null ? void 0 : _environment$document.activeElement) !== inputRef.current) {
3084
3084
  var _inputRef$current;
3085
- inputRef == null || (_inputRef$current = inputRef.current) == null ? void 0 : _inputRef$current.focus();
3085
+ inputRef == null || (_inputRef$current = inputRef.current) == null || _inputRef$current.focus();
3086
3086
  }
3087
3087
  }, [isOpen, environment]);
3088
3088
 
@@ -3068,7 +3068,7 @@ function useCombobox(userProps) {
3068
3068
  itemRefs.current = {};
3069
3069
  } else if (((_environment$document = environment.document) == null ? void 0 : _environment$document.activeElement) !== inputRef.current) {
3070
3070
  var _inputRef$current;
3071
- inputRef == null || (_inputRef$current = inputRef.current) == null ? void 0 : _inputRef$current.focus();
3071
+ inputRef == null || (_inputRef$current = inputRef.current) == null || _inputRef$current.focus();
3072
3072
  }
3073
3073
  }, [isOpen, environment]);
3074
3074
 
@@ -3005,7 +3005,7 @@ function useCombobox(userProps) {
3005
3005
  itemRefs.current = {};
3006
3006
  } else if (((_environment$document = environment.document) == null ? void 0 : _environment$document.activeElement) !== inputRef.current) {
3007
3007
  var _inputRef$current;
3008
- inputRef == null || (_inputRef$current = inputRef.current) == null ? void 0 : _inputRef$current.focus();
3008
+ inputRef == null || (_inputRef$current = inputRef.current) == null || _inputRef$current.focus();
3009
3009
  }
3010
3010
  }, [isOpen, environment]);
3011
3011
 
@@ -3065,7 +3065,7 @@ function useCombobox(userProps) {
3065
3065
  itemRefs.current = {};
3066
3066
  } else if (((_environment$document = environment.document) == null ? void 0 : _environment$document.activeElement) !== inputRef.current) {
3067
3067
  var _inputRef$current;
3068
- inputRef == null || (_inputRef$current = inputRef.current) == null ? void 0 : _inputRef$current.focus();
3068
+ inputRef == null || (_inputRef$current = inputRef.current) == null || _inputRef$current.focus();
3069
3069
  }
3070
3070
  }, [isOpen, environment]);
3071
3071
 
@@ -4402,7 +4402,7 @@
4402
4402
  itemRefs.current = {};
4403
4403
  } else if (((_environment$document = environment.document) == null ? void 0 : _environment$document.activeElement) !== inputRef.current) {
4404
4404
  var _inputRef$current;
4405
- inputRef == null || (_inputRef$current = inputRef.current) == null ? void 0 : _inputRef$current.focus();
4405
+ inputRef == null || (_inputRef$current = inputRef.current) == null || _inputRef$current.focus();
4406
4406
  }
4407
4407
  }, [isOpen, environment]);
4408
4408