Skip to content

Commit f0893b6

Browse files
committed
Fix: Set dropdown in Event Details Comments to open upward
1 parent e7f35fe commit f0893b6

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/components/events/partials/ModalTabsAndPages/EventDetailsCommentsTab.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ const EventDetailsCommentsTab = ({
249249
text={t(commentReason as ParseKeys)}
250250
options={Object.entries(commentReasons).map(([key, value]) => ({ label: value, value: key }))}
251251
required={true}
252+
menuPlacement="top"
252253
handleChange={(element) => {
253254
if (element) {
254255
setCommentReason(element.value)

src/components/shared/DropDown.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ const DropDown = <T, >({
5151
disabled?: boolean,
5252
menuIsOpen?: boolean,
5353
handleMenuIsOpen?: (open: boolean) => void,
54+
menuPlacement?: 'auto' | 'top' | 'bottom',
5455
customCSS?: {
5556
isMetadataStyle?: boolean,
5657
width?: number | string,

0 commit comments

Comments
 (0)