Skip to content

Commit

Permalink
fix(combobox): prevent opening on input with triggerMode="manual" (#465)
Browse files Browse the repository at this point in the history
  • Loading branch information
caymaynard authored Aug 21, 2024
1 parent c0028e5 commit ea7e7f9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/core/src/combobox/combobox-base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,12 @@ export function ComboboxBase<
focusStrategy: FocusStrategy | boolean,
triggerMode?: ComboboxTriggerMode,
) => {

// If set to only open manually, ignore other triggers
if (local.triggerMode === 'manual' && triggerMode !== 'manual') {
return;
}

// Show all option if menu is manually opened.
const showAllOptions = setShowAllOptions(triggerMode === "manual");

Expand Down

0 comments on commit ea7e7f9

Please sign in to comment.