mui / mui-design-kits

The public feature and bug tracker for the MUI Design kits and Connect Figma plugin.
https://mui.com/design-kits/
111 stars 16 forks source link

Customized menu items revert to their original state in the prototype #399

Open anselmo-ssoltech opened 1 month ago

anselmo-ssoltech commented 1 month ago

Steps to reproduce

Link to live example:

Steps:

  1. Insert instance of Select or Autocomplete
  2. Turn on Active switch in order to activate menu list
  3. Customize values of menu items
  4. Turn off Active to close menu list and change State from Focused to Enabled
  5. Run prototype
  6. Click Select or Autocomplete instance to open menu list

Current behavior

Menu list popup shows original menu items - 3 Menu Items and 1 divider.

Expected behavior

Menu list popup should show customized menu items

Context

I tried to add an autocomplete instance with the menu items I wanted to my UI. When I run the prototype while the menu is open, the customized content displays correctly. However, if I run the prototype while the menu is closed, when I click to open the menu, the customized content disappears, and the menu items revert to the default settings from when the instance was first created. Since the UI typically starts with the menu closed, I think this issue is important.

Your environment

Software Version
Design file version v5.16.0
Design tool Figma
etc. Community

Search keywords: select autocomplete

adrianmanea commented 1 month ago

Hi Anselmo, that's correct , the overwrites get reset to the original state. The only way to keep your overwrites is to start the prototype with the Active set to true.