Skip to content

Commit

Permalink
Keep focus inside of ComboboxInput (adobe#6783)
Browse files Browse the repository at this point in the history
* Keep focus inside of ComboboxInput
  • Loading branch information
chirokas committed Jul 29, 2024
1 parent 10a469d commit 1de2739
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/@react-aria/combobox/src/useComboBox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,8 @@ export function useComboBox<T>(props: AriaComboBoxOptions<T>, state: ComboBoxSta
...menuTriggerProps,
...triggerLabelProps,
excludeFromTabOrder: true,
// @ts-ignore - undocumented
preventFocusOnPress: true,
onPress,
onPressStart,
isDisabled: isDisabled || isReadOnly
Expand Down

0 comments on commit 1de2739

Please sign in to comment.