Skip to content

Commit

Permalink
only select the active option when using "singular" mode
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinMalfait committed Aug 9, 2022
1 parent 4c433cd commit a52be86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ let Input = forwardRefWithAs(function Input<

case Keys.Tab:
if (data.comboboxState !== ComboboxState.Open) return
actions.selectActiveOption()
if (data.mode === ValueMode.Single) actions.selectActiveOption()
actions.closeCombobox()
break
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ export let ComboboxInput = defineComponent({

case Keys.Tab:
if (api.comboboxState.value !== ComboboxStates.Open) return
api.selectActiveOption()
if (api.mode.value === ValueMode.Single) api.selectActiveOption()
api.closeCombobox()
break
}
Expand Down

0 comments on commit a52be86

Please sign in to comment.