Skip to content

Commit

Permalink
feat(MultiSelect): add scrollOverflow prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuriy Vasilyev committed Jan 13, 2025
1 parent 2189a9f commit 7b4b795
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/MultiSelect/MultiSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export type MultiSelectProps = {
dropdownFooter?: ReactNode;
showDropdownFooter?: boolean;
variant?: "condensed" | "search";
scrollOverflow?: boolean;
};

type ValueSet = Set<MultiSelectItem["value"]>;
Expand Down Expand Up @@ -191,6 +192,7 @@ export const MultiSelect: React.FC<MultiSelectProps> = ({
dropdownFooter,
showDropdownFooter = true,
variant = "search",
scrollOverflow = false,
}: MultiSelectProps) => {
const buttonRef = useRef();
const [isDropdownOpen, setIsDropdownOpen] = useState(false);
Expand Down Expand Up @@ -326,6 +328,7 @@ export const MultiSelect: React.FC<MultiSelectProps> = ({
)
}
visible={isDropdownOpen}
scrollOverflow={scrollOverflow}
>
<MultiSelectDropdown
id={dropdownId}
Expand Down

0 comments on commit 7b4b795

Please sign in to comment.