Material-ui: [Menu] Can't scroll up in AutoComplete

Created on 21 Feb 2017  路  3Comments  路  Source: mui-org/material-ui

I set a max-height for menu in Autocomplete, this allows me to have many items and a scroll bar.

with Material-ui 0.17.0

Looks like the issue is in handleOnWheel in Menu.js when !isDeltaPositive
https://github.com/callemall/material-ui/blob/master/src/Menu/Menu.js#L472-L475

should be -wheelDelta > scrollHeight ?

Menu

Most helpful comment

This fixes the issue:

   menuStyle = {{maxHeight:"300px",overflowY:'auto'}}

Thanks!

All 3 comments

This fixes the issue:

   menuStyle = {{maxHeight:"300px",overflowY:'auto'}}

Thanks!

I hope we can find a better solution. I'm closing it for now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TimoRuetten picture TimoRuetten  路  3Comments

chris-hinds picture chris-hinds  路  3Comments

ryanflorence picture ryanflorence  路  3Comments

iamzhouyi picture iamzhouyi  路  3Comments

ghost picture ghost  路  3Comments