Skip to content

[client] Tell react-select to place the menu above or below the input automacically.

Antoine requested to merge ZeHiro/kresus:select-position into master

Before the MR, when the select is at the bottom of the page, the menu is displayed outside the viewport(by default the menu is displayed below: search menuPlacement in https://react-select.com/props):

The screenshot was taken when opening a select at the bottom of the visible list.

MenuBelow

This MR allows menu to be showed at the most appropriate location, depending on the available space :

MenuAbove

Merge request reports