From 7b4b79508c2e967da6de77923387f8416ccd0fb7 Mon Sep 17 00:00:00 2001 From: Yuriy Vasilyev Date: Mon, 13 Jan 2025 18:39:47 +0100 Subject: [PATCH] feat(MultiSelect): add scrollOverflow prop --- src/components/MultiSelect/MultiSelect.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/MultiSelect/MultiSelect.tsx b/src/components/MultiSelect/MultiSelect.tsx index 2cdcc768..391a6e4c 100644 --- a/src/components/MultiSelect/MultiSelect.tsx +++ b/src/components/MultiSelect/MultiSelect.tsx @@ -31,6 +31,7 @@ export type MultiSelectProps = { dropdownFooter?: ReactNode; showDropdownFooter?: boolean; variant?: "condensed" | "search"; + scrollOverflow?: boolean; }; type ValueSet = Set; @@ -191,6 +192,7 @@ export const MultiSelect: React.FC = ({ dropdownFooter, showDropdownFooter = true, variant = "search", + scrollOverflow = false, }: MultiSelectProps) => { const buttonRef = useRef(); const [isDropdownOpen, setIsDropdownOpen] = useState(false); @@ -326,6 +328,7 @@ export const MultiSelect: React.FC = ({ ) } visible={isDropdownOpen} + scrollOverflow={scrollOverflow} >