This repository has been archived by the owner on Sep 1, 2020. It is now read-only.
v2.0.0-alpha.1
Pre-release
Pre-release
This is a ground up rewrite with much simpler API and slimmer package size.
Added
- Added the ability to access the element on which the right-click occured in
onClick
handler ofMenuItem
. - Hide contextmenu on window resize.
- Right-click when menu is already open, opens the menu at new location.
- Added support for
onShow
andonHide
callbacks onContextMenu
. - Added class
react-contextmenu--visible
for when menu root element is visible
Changed
ContextMenuLayer
higher order function is replaced withContextMenuTrigger
component.- Changed the classnames:
react-context-menu
=>react-contextmenu
react-context-menu-item
=>react-contextmenu-item
react-context-menu-link
=>react-contextmenu-link
react-context-menu-wrapper
=>react-contextmenu-wrapper
submenu
=>react-contextmenu-submenu
disabled
=>react-contextmenu-link--disabled
active
=>react-contextmenu-link--active
Removed
- Dropped support for IE < 11
- Removed dependency on
react-bootstap/react-overlays
andredux