MenuListProps in UserMenu's Menu components are not overriding
Closed this issue · 0 comments
surajeaton commented
Describe the bug / expected behavior
What are the steps to reproduce?
- yarn start
- Pass
MenuProps={{MenuListProps: { dataTestId: 'user-menu-one'}}}
to UserMenu component - Go to Brightlayer UI Component's Data Display
- Scroll down to the User Menu
- Click on User Menu
- Inspect User Menu
- 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