Skip to content

Commit

Permalink
fix(select): fixed issue with empty options list and visible footer
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaRodyukov committed Oct 11, 2024
1 parent 3314a00 commit 4cc820f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/select/src/components/options-list/Component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export const OptionsList = forwardRef<HTMLDivElement, OptionsListProps>(

{nativeScrollbar ? renderWithNativeScrollbar() : renderWithCustomScrollbar()}

{showFooter && footer && (
{showFooter && footer && !!flatOptions.length && (
<div
onMouseEnter={resetHighlightedIndex}
className={cn(styles.optionsListFooter, {
Expand Down

0 comments on commit 4cc820f

Please sign in to comment.