Material-ui: [AutoComplete] Add a maxHeight property

Created on 16 Jan 2016  路  6Comments  路  Source: mui-org/material-ui

DropDownMenu has a maxHeight property described as "The maximum height of the Menu when it is displayed".
AutoComplete has a similar Menu that I think would be awesome have this same property.

enhancement

Most helpful comment

an alternative way, just add this:
menuStyle={{maxHeight:"30vh"}}

All 6 comments

To be more clear I am trying avoid that the floating menu fills all page's height when dataSource is bigger than the examples given in the docs.

An example here

an alternative way, just add this:
menuStyle={{maxHeight:"30vh"}}

@Fauny Thanks for the tip ;)

Picked up with #3194. Thanks for the suggestion! :+1:

@Fauny This doesn't seem to work for me. Where would you put that? I'm trying to put it on <AutoComplete /> but it doesn't seem to make a difference. Using [email protected] so wondering if it is a version difference?

This @Fauny . Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

finaiized picture finaiized  路  3Comments

ericraffin picture ericraffin  路  3Comments

sys13 picture sys13  路  3Comments

anthony-dandrea picture anthony-dandrea  路  3Comments