Skip to content
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
Compare
Choose a tag to compare
@vkbansal vkbansal released this 26 Oct 09:26

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 of MenuItem.
  • Hide contextmenu on window resize.
  • Right-click when menu is already open, opens the menu at new location.
  • Added support for onShow and onHide callbacks on ContextMenu.
  • Added class react-contextmenu--visible for when menu root element is visible

Changed

  • ContextMenuLayer higher order function is replaced with ContextMenuTrigger 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 and redux