Skip to content

Commit

Permalink
fix(comp:select): fix selected options display when filtered (#977)
Browse files Browse the repository at this point in the history
  • Loading branch information
sallerli1 committed Jun 24, 2022
1 parent 22df29c commit ddd67e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/select/src/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ function useSelectOptions(
const flattenedOptions = useFlattenedOptions(convertedOptions, mergedChildrenKey, getKey, mergedLabelKey)
const filteredOptions = useFilteredOptions(props, flattenedOptions, inputValue, mergedLabelKey)

const optionKeyMap = useOptionKeyMap(filteredOptions)
const optionKeyMap = useOptionKeyMap(flattenedOptions)

return { options: filteredOptions, optionKeyMap }
}

0 comments on commit ddd67e3

Please sign in to comment.