Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite committed Mar 20, 2024
1 parent 0830e93 commit 700cc9d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,13 @@ export function LemonInputSelect({
const res: LemonInputSelectOption[] = []
const customValues = [...values]

// Finally we show the input value if custom values are allowed and it's not in the list
// We show the input value if custom values are allowed and it's not in the list
if (allowCustomValues && inputValue && !values.includes(inputValue)) {
customValues.unshift(inputValue)
}

options.forEach((option) => {
// Remove from the custom values list if it's in the options

if (customValues.includes(option.key)) {
customValues.splice(customValues.indexOf(option.key), 1)
}
Expand Down

0 comments on commit 700cc9d

Please sign in to comment.