Skip to content

Commit

Permalink
feat: add placement prop for DropDown (qiwi#574)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexey Chernikov <[email protected]>
  • Loading branch information
chrnkv and Alexey Chernikov authored Sep 25, 2023
1 parent 78b8b4b commit 354ea63
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/desktop/src/main/ts/drop-down/DropDown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export interface DropDownProps {
maxWidth?: Value
rootClose?: boolean
stub?: boolean
placement?: OverlayProps['placement']
target: OverlayProps['target']
container: OverlayProps['container']
children: ReactElement
Expand Down Expand Up @@ -56,6 +57,7 @@ export const DropDown: FC<DropDownProps> = ({
maxWidth,
rootClose = true,
stub = false,
placement = 'bottom',
target,
container,
onHide,
Expand All @@ -67,7 +69,7 @@ export const DropDown: FC<DropDownProps> = ({
) : (
<Overlay
show={show}
placement="bottom"
placement={placement}
target={target}
container={container}
rootClose={rootClose}
Expand Down

0 comments on commit 354ea63

Please sign in to comment.