etn-ccis/blui-react-component-library

MenuListProps in UserMenu's Menu components are not overriding

Closed this issue · 0 comments

Describe the bug / expected behavior

What are the steps to reproduce?

  1. yarn start
  2. Pass MenuProps={{MenuListProps: { dataTestId: 'user-menu-one'}}} to UserMenu component
  3. Go to Brightlayer UI Component's Data Display
  4. Scroll down to the User Menu
  5. Click on User Menu
  6. Inspect User Menu
  7. MenuListProps are not applying

Screenshots / Screen recording

Code snippet / Link to minimum reproduction example

MenuProps={{MenuListProps: { dataTestId: 'user-menu-one'}}}

Your environment information

Suggested fix

Spread MenuListProps from MenuProps and merge with the default MenuListProps

Anything else to add?