Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion static/app/components/core/select/select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ function SelectPicker<OptionType extends OptionTypeBase>({
Component = ReactSelect;
}

return <Component ref={ref as any} {...props} />;
return <Component ref={ref as any} {...props} menuPlacement="auto" />;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Default Prop Overriding User Input

The menuPlacement="auto" prop is placed after {...props}, causing it to override any menuPlacement value passed in props instead of serving as a default. This prevents users from customizing the menu placement.

Fix in Cursor Fix in Web

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bingo. that is what we want!

}

// XXX (tkdodo): this type assertion is a leftover from when we had forwardRef
Expand Down
Loading