We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0abd66e commit 9e9ee69Copy full SHA for 9e9ee69
src/components/fields/ComboBox/ComboBox.tsx
@@ -538,7 +538,7 @@ function useComboBoxKeyboard({
538
listState.selectionManager.select(keyToSelect, e);
539
// Ensure the popover closes even if selection stays the same
540
onClosePopover();
541
- setTimeout(() => inputRef.current?.focus(), 0);
+ inputRef.current?.focus();
542
}
543
544
} else if (e.key === 'Escape') {
@@ -1501,7 +1501,7 @@ export const ComboBox = forwardRef(function ComboBox<T extends object>(
1501
data-size={size}
1502
isDisabled={isDisabled}
1503
styles={triggerStyles}
1504
- onClick={() => {
+ onPress={() => {
1505
if (!isDisabled) {
1506
const willOpen = !isPopoverOpen;
1507
setIsPopoverOpen(willOpen);
0 commit comments