martmull
2025-06-16 13:40:27 +02:00
committed by GitHub
parent cdc4badec3
commit e0cb53af48
21 changed files with 90 additions and 10 deletions

View File

@ -25,6 +25,7 @@ type MultiSelectInputProps = {
onCancel?: () => void;
options: SelectOption[];
onOptionSelected: (value: FieldMultiSelectValue) => void;
dropdownWidth?: number;
};
export const MultiSelectInput = ({
@ -34,6 +35,7 @@ export const MultiSelectInput = ({
hotkeyScope,
onCancel,
onOptionSelected,
dropdownWidth,
}: MultiSelectInputProps) => {
const { resetSelectedItem } = useSelectableList(
selectableListComponentInstanceId,
@ -102,7 +104,11 @@ export const MultiSelectInput = ({
selectableItemIdArray={optionIds}
hotkeyScope={hotkeyScope}
>
<DropdownContent ref={containerRef} selectDisabled>
<DropdownContent
ref={containerRef}
selectDisabled
widthInPixels={dropdownWidth}
>
<DropdownMenuSearchInput
value={searchFilter}
onChange={(event) =>