etn-ccis / blui-react-component-library

Re-usable React components for use in Brightlayer UI applications
BSD 3-Clause "New" or "Revised" License
16 stars 10 forks source link

MenuListProps in UserMenu's Menu components are not overriding #893

Open surajeaton opened 1 month ago

surajeaton commented 1 month ago

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?