Select multiple popup menu moves when items are selected #20707
Labels
component: select
This is the name of the generic UI component, not the React module!
duplicate
This issue or pull request already exists
Milestone
I noticed this when upgrading from Material UI 4.2.0 to 4.9.10, but through troubleshooting, I believe this behavior started with version 4.8.3.
When using a Select with the multiple attribute, the popup menu moves to a different location upon selection of the first item.
Current Behavior 😯
When using a Select with the multiple attribute, the popup menu moves upon selection of the first item. I have other examples where it moves several times as multiple items are selected, but in the example I'm providing below, it seems to just move when choosing the first item.
Expected Behavior 🤔
Prior to Material UI v4.8.3, when I would select items from the popup menu, it would remain in its original position and not move around on me.
Steps to Reproduce 🕹
Here's a codesandbox demonstrating the issue.
Steps:
Here's a codesandbox with the same code, but using Material UI v4.8.2. I this case, when selecting items, the popup menu stays in its original position and does not move around. I feel like this should be the preferred behavior, but have not figured out what I can apply to the Select or MenuItems to get back to the old behavior.
The codesandboxes were made from samples found in the official Material UI examples.
Context 🔦
In its current state, I feel like I have to chase the menu around when selecting multiple items. As I said above, in this example, the popup only seems to move on the first selection, but I have other situations where it moves several times.
Your Environment 🌎
The text was updated successfully, but these errors were encountered: