Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix formatting of if statement in useComboBoxState
Fix lint issue
  • Loading branch information
widavies authored Nov 16, 2025
commit d742b49872e755ede313a46640f36dceafd00947
2 changes: 1 addition & 1 deletion packages/@react-stately/combobox/src/useComboBoxState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export function useComboBoxState<T extends object>(props: ComboBoxStateOptions<T
// Clear focused key when input value changes and display filtered collection again.
if (inputValue !== lastValue) {
const firstKey = filteredCollection.getFirstKey();
if(firstKey) selectionManager.setFocusedKey(firstKey);
if (firstKey) selectionManager.setFocusedKey(firstKey);
setShowAllItems(false);

// Set selectedKey to null when the user clears the input.
Expand Down