Skip to content

Commit 1de2739

Browse files
authored
Keep focus inside of ComboboxInput (#6783)
* Keep focus inside of ComboboxInput
1 parent 10a469d commit 1de2739

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/@react-aria/combobox/src/useComboBox.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,8 @@ export function useComboBox<T>(props: AriaComboBoxOptions<T>, state: ComboBoxSta
346346
...menuTriggerProps,
347347
...triggerLabelProps,
348348
excludeFromTabOrder: true,
349+
// @ts-ignore - undocumented
350+
preventFocusOnPress: true,
349351
onPress,
350352
onPressStart,
351353
isDisabled: isDisabled || isReadOnly

0 commit comments

Comments
 (0)