downshift 7.4.0 → 7.4.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.
@@ -3282,12 +3282,12 @@ function useCombobox(userProps) {
3282
3282
  inputValue: event.target.value
3283
3283
  });
3284
3284
  };
3285
- var inputHandleBlur = function inputHandleBlur() {
3285
+ var inputHandleBlur = function inputHandleBlur(event) {
3286
3286
  /* istanbul ignore else */
3287
3287
  if (latestState.isOpen && !mouseAndTouchTrackersRef.current.isMouseDown) {
3288
3288
  dispatch({
3289
3289
  type: InputBlur,
3290
- selectItem: true
3290
+ selectItem: event.relatedTarget !== null
3291
3291
  });
3292
3292
  }
3293
3293
  };
@@ -3269,12 +3269,12 @@ function useCombobox(userProps) {
3269
3269
  inputValue: event.target.value
3270
3270
  });
3271
3271
  };
3272
- var inputHandleBlur = function inputHandleBlur() {
3272
+ var inputHandleBlur = function inputHandleBlur(event) {
3273
3273
  /* istanbul ignore else */
3274
3274
  if (latestState.isOpen && !mouseAndTouchTrackersRef.current.isMouseDown) {
3275
3275
  dispatch({
3276
3276
  type: InputBlur,
3277
- selectItem: true
3277
+ selectItem: event.relatedTarget !== null
3278
3278
  });
3279
3279
  }
3280
3280
  };
@@ -3204,12 +3204,12 @@ function useCombobox(userProps) {
3204
3204
  inputValue: /* istanbul ignore next (react-native) */event.nativeEvent.text
3205
3205
  });
3206
3206
  };
3207
- var inputHandleBlur = function inputHandleBlur() {
3207
+ var inputHandleBlur = function inputHandleBlur(event) {
3208
3208
  /* istanbul ignore else */
3209
3209
  if (latestState.isOpen && !mouseAndTouchTrackersRef.current.isMouseDown) {
3210
3210
  dispatch({
3211
3211
  type: InputBlur,
3212
- selectItem: true
3212
+ selectItem: event.relatedTarget !== null
3213
3213
  });
3214
3214
  }
3215
3215
  };
@@ -4594,12 +4594,12 @@
4594
4594
  inputValue: event.target.value
4595
4595
  });
4596
4596
  };
4597
- var inputHandleBlur = function inputHandleBlur() {
4597
+ var inputHandleBlur = function inputHandleBlur(event) {
4598
4598
  /* istanbul ignore else */
4599
4599
  if (latestState.isOpen && !mouseAndTouchTrackersRef.current.isMouseDown) {
4600
4600
  dispatch({
4601
4601
  type: InputBlur,
4602
- selectItem: true
4602
+ selectItem: event.relatedTarget !== null
4603
4603
  });
4604
4604
  }
4605
4605
  };