Skip to content

Commit 9e9ee69

Browse files
committed
fix(ComboBox): minor fixes
1 parent 0abd66e commit 9e9ee69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/fields/ComboBox/ComboBox.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ function useComboBoxKeyboard({
538538
listState.selectionManager.select(keyToSelect, e);
539539
// Ensure the popover closes even if selection stays the same
540540
onClosePopover();
541-
setTimeout(() => inputRef.current?.focus(), 0);
541+
inputRef.current?.focus();
542542
}
543543
}
544544
} else if (e.key === 'Escape') {
@@ -1501,7 +1501,7 @@ export const ComboBox = forwardRef(function ComboBox<T extends object>(
15011501
data-size={size}
15021502
isDisabled={isDisabled}
15031503
styles={triggerStyles}
1504-
onClick={() => {
1504+
onPress={() => {
15051505
if (!isDisabled) {
15061506
const willOpen = !isPopoverOpen;
15071507
setIsPopoverOpen(willOpen);

0 commit comments

Comments
 (0)