tbleckert / react-select-search

⚡️ Lightweight select component for React
https://react-select-search.com
MIT License
675 stars 149 forks source link

Add option to render select menu *above* input box? #213

Open khughitt opened 2 years ago

khughitt commented 2 years ago

Overview

It would be useful, in some cases, to render a search box at the bottom of a page, and have the options appear above it.

Solution

Add an option to specify the behavior with respect to menu placement.

For consistency, it might be worth considering adopting the menuPlacement="top" syntax of react-select?

A clear and concise description of what you want to happen.

Alternatives

It should be possible to manually position the container of search options, but since this seems like something that could be of general interest, I thought I would suggest this here, first..

mattoni commented 2 years ago

Would also like to see this - selects rendered at the bottom of the page either jump the scrollbar, or get cut off.