Skip to content

Releases: swisnl/jQuery-contextMenu

2.6.4

16 Mar 11:17

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

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.

2.6.3

30 Oct 19:06

Choose a tag to compare

Fixed

  • Fix for building in dist folder. 2.6.1 and 2.6.2 were affected.

2.6.2

08 Sep 12:46

Choose a tag to compare

Fixed

  • Dev dependency ended up in normal dependencies.

2.6.1

08 Sep 12:42

Choose a tag to compare

Added

  • Ability to define touchstart as trigger (thanks @npuser)
  • Extra event activated that triggers after the menu is activated (thanks @AliShahrivarian)
  • Flag denoting if a second trigger should close the menu (thanks @OliverColeman)
  • Added update call to update visibility, disabled, icon and form value stats for items. Fixes issue (Issue #555).
    $('.context-menu-one').contextMenu('update'); // update single menu
    $.contextMenu('update') // update all open menus

Fixed

2.5.0

25 May 11:32

Choose a tag to compare

Added

2.4.5

25 May 11:29

Choose a tag to compare

Fixed

  • ContextMenu appears with wrong position (Issue #502 thanks @apptaro
  • Check if given selected value is a 0, if it is a zero so return it as is. Thanks @Falseee
  • Events are never trigger when opening a contextMenu right after the other (Issue #454 thanks @kagant15
  • Accesskey jQuery Modal Dialog not working (Issue #506 thanks @CiTRO33
  • Fix submenu hover not always staying active if hovering over a submenu item. (Issue #523 thanks @tim-nz
  • Change $node.click() to $node.get(0).click() to allow native event in HTML5 (Issue #517)

2.4.4

15 Mar 09:17

Choose a tag to compare

Fixed

  • trigger is sometimes called on undefined objects because of typecheck on null. thanks @andreasrosdal

2.4.3

15 Mar 09:16

Choose a tag to compare

Changed

  • The inline style causes a Content Security Policy violation if style-src 'unsafe-inline' is not defined in the policy. PR 498 thanks @StealthDuck

  • Removed GPL license from the comment in the plugin. Was already removed everywhere else. Only MIT applies now.

Added

  • Added SauceLabs tests for common browsers.

2.4.2

02 Jan 09:04

Choose a tag to compare

Fixed

  • Focus not set on content editable element when right clicking the second time (Issue #482)
  • selectableSubMenu broke disabling click menu (fixes (Issue #493)