boilerplate for common Material-UI Menu, Popover and Popper use cases
<Menu {...bindMenu(popupState)}>
and <Popover {...bindPopover(popupState)}>
has changed if you are
using bindContextMenu
. Before, they would be positioned to the
event target element (using anchorEl
). Now they will be positioned
to the event location (using anchorPosition
).To restore the previous behavior, pass anchorReference="anchorEl"
after
bindMenu
/bindPopover
. For example, <Menu {...bindMenu(popupState)} anchorReference="anchorEl">
.