Skip to content

Commit

Permalink
fix(input-autocomplete): popover height with dynamic height options
Browse files Browse the repository at this point in the history
  • Loading branch information
koretskyhub committed Jul 5, 2021
1 parent 3112f69 commit da24758
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/select/src/components/options-list/Component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,15 @@ export const OptionsList = ({
visibleOptions,
listRef,
open,
invalidate: options.length,
invalidate: JSON.stringify(
options.map(option => {
if ('key' in option) {
return option.key;
}

return option.options.map(({ key }) => key);
}),
),
});

if (options.length === 0 && !emptyPlaceholder) {
Expand Down

0 comments on commit da24758

Please sign in to comment.