fix(desktop): flip select menus up when the window clips them (#11495)
Signed-off-by: Seydi Charyyev <seydi.charyev@gmail.com>
This commit is contained in:
@@ -6,6 +6,9 @@ export const Select = (props: React.ComponentProps<typeof ReactSelect>) => {
|
||||
<ReactSelect
|
||||
{...props}
|
||||
unstyled
|
||||
// react-select opens downwards by default, so a control near the bottom of the
|
||||
// window puts the last options past its edge. 'auto' flips the menu up instead.
|
||||
menuPlacement={props.menuPlacement ?? 'auto'}
|
||||
isSearchable={props.isSearchable !== false}
|
||||
closeMenuOnSelect={props.closeMenuOnSelect !== false}
|
||||
blurInputOnSelect={props.blurInputOnSelect !== false}
|
||||
|
||||
Reference in New Issue
Block a user