Skip to content

Commit

Permalink
fix: Expose 'multiline' prop for TreeSelectField
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Dow committed Jun 11, 2024
1 parent 20c1f3e commit e52fb10
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/inputs/TreeSelectField/TreeSelectField.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,15 @@ function Template(args: TreeSelectFieldProps<HasIdAndName, string>) {
label="Multiple options selected"
/>

<TestTreeSelectField
{...args}
multiline
values={multipleValueIds}
options={options}
placeholder="Select a project"
label="Multiple options selected - multiline prop"
/>

<TestTreeSelectField
{...args}
values={[]}
Expand Down
2 changes: 2 additions & 0 deletions src/inputs/TreeSelectField/TreeSelectField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ export interface TreeSelectFieldProps<O, V extends Value> extends BeamFocusableP
/** Whether to have all groups collapsed on initial load. Can also be configured individually, which overrides this behavior.
* @default false */
defaultCollapsed?: boolean;
/** Allow the field's height to grow up to a predefined height (currently 72px), then scroll. */
multiline?: boolean;
}

export function TreeSelectField<O, V extends Value>(props: TreeSelectFieldProps<O, V>): JSX.Element;
Expand Down

0 comments on commit e52fb10

Please sign in to comment.