Menu positioning ignores disabled MenuItem #23049
Labels
component: menu
This is the name of the generic UI component, not the React module!
duplicate
This issue or pull request already exists
So this weird jumps are happening.
Current Behavior 😯
Menu position changes if it contains disabled menu-items
Expected Behavior 🤔
Menu stays at same position.
Steps to Reproduce 🕹
After many hours of debugging while sleeping I woke up and figured out that for some reason disabled menu-items' heights don't count to calculate the positioning.
Is it by design? Is there a way to work around it?
https://codesandbox.io/s/reverent-bird-k7dsj?file=/src/Demo.js
Steps:
Context 🔦
When the item is clicked, an http request is fired and that item is disabled until request completes. When it completes, the menu is closed.
Your Environment 🌎
The text was updated successfully, but these errors were encountered: