Skip to content

Commit

Permalink
fix: autocomplete after changing country
Browse files Browse the repository at this point in the history
  • Loading branch information
fterra-encora committed Sep 27, 2023
1 parent 628a9be commit 6b4ff8f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ let selectedValue: BusinessSearchResult | undefined = undefined
//This function emits the events on update
const emitValueChange = (newValue: string): void => {
selectedValue = props.contents.find((entry) => entry.code === newValue)
selectedValue = inputList.value.find((entry) => entry.code === newValue)
emit('update:model-value', selectedValue?.name ?? newValue)
emit('update:selected-value', selectedValue)
emit('empty', isEmpty(selectedValue))
Expand Down

0 comments on commit 6b4ff8f

Please sign in to comment.