alsoscotland / react-super-select

MIT License
95 stars 33 forks source link

Menu list is not shown in a scrollable div #49

Closed xabikos closed 8 years ago

xabikos commented 8 years ago

Thank you very much for this amazing component. I really want to use it but I face a problem when trying to add the component inside a div that has overflow auto and there is not enough space for the menu to appear. In this case we need to scroll to be able to see all the options. You can see an example here super select

Instead a behavior like on that follows would be better

date

The second is react-datepicker component and they use tether library to achieve that result

alsoscotland commented 8 years ago

@xabikos Thank you for the kind words about the component. The decision to make the component an inline component was opinionated one, but it was deliberate.

I apologize that it makes it a struggle for your use case. Unfortunately, I think the best thing I can suggest here is that you use the customClass attribute, and override the dropdown styles so that the select dropdown fits in your window when scrolled to the top.