tbleckert / react-select-search

⚡️ Lightweight select component for React
https://react-select-search.vercel.app
MIT License
679 stars 147 forks source link

Dropdown is not flexible #40

Open shashidhar-slk opened 5 years ago

shashidhar-slk commented 5 years ago

Hi Team, having issue with dropdown -> Onclick dropdown list open after based on the screen it has to adjust but its always dropdown list will open down side only can any one help me

tbleckert commented 5 years ago

Do you mean that you want it to open up instead of down if the select box is too close to the bottom of the screen? That's not possible atm but a good feature and we'll look into it asap.

TapanChoudhary commented 5 years ago

We can achieve that by appending the class(drop-up) by getting the location of our drop-down element, and then adding below code in our CSS.

.drop-up.select-search-box__select { top: auto; bottom:60px; }

So far I could not find a way to append the class, If you can tell ho can I append the class then we can knock that out,