Skip to content

Releases: swisnl/jQuery-contextMenu

2.9.2

13 May 14:05
Compare
Choose a tag to compare
  • Fix reflow when adding click layer to page (fixed #721, thanks @Rhain)

2.9.1

06 May 19:09
0dc5897
Compare
Choose a tag to compare

2.9.1

  • Fix error when closing the menu by clicking on the page without any element under that click point. (fixes #717)
  • Upgrades dependencies

2.9.0

13 Oct 13:11
Compare
Choose a tag to compare

2.9.0

Added

  • Added dataAttr option to add arbitrary data attributes to menu items.

Changed

  • Updated dev dependencies.

2.8.1

05 Oct 08:39
Compare
Choose a tag to compare

Fixed

  • Added FontAwesome fab class to known classes.

Documentation

  • Updated documentation for callback (thanks @arashdalir)

2.8.0

16 Jan 16:02
Compare
Choose a tag to compare

Added

  • Added support for events.preShow so you can enable default browser menu if needed (thanks @terwarf)

2.7.1

02 Oct 14:40
Compare
Choose a tag to compare

Fixed

  • A context menu appears outside the screen Under certain conditions (thanks @so-susa)
  • No font-awesome icons visible in submenu (Issue #659) thanks @betafritz and @klues

2.7.0

12 Jul 09:08
Compare
Choose a tag to compare

Added

Documentation

  • Add getting started to the documentation.
  • Fixed typo in documentation which breaks the callback demo.
  • Fixed typo promis => promise (Issue #633).
  • Fixed arguments for callback option in documentation (Issue #571).

3.0.0-beta.2

16 Mar 11:24
Compare
Choose a tag to compare
3.0.0-beta.2 Pre-release
Pre-release

Fixed

  • The contextmenu now checks visible on items once instead of twice. Fixes issue 612.
  • Font awesome li height is now consistent again. Fixes issue Fixes issue 612.

2.6.4

16 Mar 11:17
Compare
Choose a tag to compare

Fixed

  • events.activated is called without optionsas argument (Issue #580).
  • LayerClick sometimes breaks when the source is not a mouseevent (Issue #132).
  • The contextmenu now checks visible on items once instead of twice. Fixes issue 612.
  • Font awesome li height is now consistent again (Issue #610).

3.0.0-beta.1

30 Dec 20:19
Compare
Choose a tag to compare
3.0.0-beta.1 Pre-release
Pre-release

Migrating

  • To migrate, you only need to change all callback functions to the new arguments (icon, build, visible, disabled, item callback and global item callback). Also if you listen to contextmenu events, please check if you still get the correct data.

Changed

  • Restructured the code to use Webpack with Babel. Build the code with yarn run webpack.
  • Changed linting to ESLint.
  • Moved to BrowserStack for browser testing.
  • Added JSDoc for generated API documentation.
  • Added 3.x documentation on GitHub pages.
  • The previous opt and root arguments are now described as currentMenuData and rootMenuData, which are documented in ContextMenuData.
  • Defined a few callback types to illustrate the arguments with which they are called.
  • Build callback ContextMenuBuildCallback is now function(e, $currentTrigger).
  • Icon callback ContextMenuIconCallback is now function(e, $item, key, item, currentMenuData, rootMenuData).
  • The visibile, disabled, global callback and item callback ContextMenuItemCallback is now function(e, key, currentMenuData, rootMenuData).
  • If you define custom menu item types in $.contextMenu.types they get called as ContextMenuItemTypeCallback with function(e, item, currentMenuData, rootMenuData).
  • All events should always include event data containing the ContextMenuData as described in ContextMenuEvent. So if you listen to contextmenu events you should always have the data available.

Fixed

  • Add options argument to events.activates. (Issue #580)
  • Fix support for $(element).contextMenu('update') which was broken.
  • Fixed bug in checking visibility of items for menu visibility. If a menu item was defined as { item: { visible: false } } it would not stop the menu from showing.