Skip to content

Commit bc3c444

Browse files
committed
make menuPlacement configurable via props
1 parent f0893b6 commit bc3c444

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/shared/DropDown.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ const DropDown = <T, >({
3333
creatable = false,
3434
disabled = false,
3535
menuIsOpen = undefined,
36+
menuPlacement = "auto",
3637
handleMenuIsOpen = undefined,
3738
customCSS,
3839
}: {
@@ -115,7 +116,7 @@ const DropDown = <T, >({
115116

116117

117118
let commonProps: Props = {
118-
menuPlacement: 'auto',
119+
menuPlacement: menuPlacement ?? 'auto',
119120
tabIndex: tabIndex,
120121
theme: (theme) => (dropDownSpacingTheme(theme)),
121122
styles: style,

0 commit comments

Comments
 (0)