Current Behavior 😯
When having not that much space below the bottom of the input field the Autocomplete opens to the top.
By entering text into the input field the Autocomplete field gets shorter and jumps to the bottom.
Expected Behavior 🤔
After opening the Autocomplete ist should stay at the same position as the switch to the bottom is not expected and the user has to re-orientate to find the list of suggestions.
Steps to Reproduce 🕹
Reproducible in the docs demo: https://mui.com/material-ui/react-autocomplete/#combo-box
- Open the popup when the component is near the bottom edge of the viewport(leave a gap roughly the size of one option). It should open to the top of the textbox.
- Filter the options until there is one left (e.g. type "Shawshank redemption")
- Popup shifts to the bottom (popper's flip middleware kicks in)
(Stale) CodeSandbox used for reproduction: https://codesandbox.io/s/naughty-hermann-24rmn
Steps:
- The input field

- Ensure that there is not much space to the bottom
- After clicking into the field, the Autocomplete opens to the top (as expected ✔️)

- After typing an "a", the Autocomplete jumps to the bottom (not expected, should stay ❌)

Your Environment 🌎
| Tech |
Version |
| Material-UI |
v4.11.0 |
| React |
v16.13.1 |
| Browser |
Chrome 83 |
Current Behavior 😯
When having not that much space below the bottom of the input field the Autocomplete opens to the top.
By entering text into the input field the Autocomplete field gets shorter and jumps to the bottom.
Expected Behavior 🤔
After opening the Autocomplete ist should stay at the same position as the switch to the bottom is not expected and the user has to re-orientate to find the list of suggestions.
Steps to Reproduce 🕹
Reproducible in the docs demo: https://mui.com/material-ui/react-autocomplete/#combo-box
(Stale) CodeSandbox used for reproduction: https://codesandbox.io/s/naughty-hermann-24rmn
Steps:
Your Environment 🌎