Bug Report
- Package version(s): (5.97.0)
Priorities and help requested (not applicable if asking question):
Are you willing to submit a PR to fix? (Yes)
Requested priority: (High)
Products/sites affected: (ContextMenu)
Describe the issue:
With #4741 , the behavior of the context menu is regressed, If you have both onclick with preventdefault and href of the context menu item, href is now obeyed and onclick is never been called. This is because now _onItemClick from ContextualMenuItemWrapper is called instead from props.
Actual behavior:
On click of the menu item the whole page refreshes.
Expected behavior:
On click of the menu item, it should invoke the passed on click method