swisnl/jQuery-contextMenu
jQuery contextMenu plugin & polyfill
30 Releases
Latest: 7mo ago
2.10.1Latest
📋 What's Changed
- Allow overriding default icon colors by @RentecTravis in https://github.com/swisnl/jQuery-contextMenu/pull/728
- Fix menu jumping to top of screen and disappearing to the right by @Speedphoenix in https://github.com/swisnl/jQuery-contextMenu/pull/751
- Add demo for promise-based context menu in text input by @ericprud in https://github.com/swisnl/jQuery-contextMenu/pull/734
- Fix README.md inserting latex by @Speedphoenix in https://github.com/swisnl/jQuery-contextMenu/pull/768
- Fix click through issue and rebuild dist by @bbrala in https://github.com/swisnl/jQuery-contextMenu/pull/779
- Fix unpropagated click for background layer by @bbrala in https://github.com/swisnl/jQuery-contextMenu/pull/780
- html5 & callback is not actually working #564 by @daveherman71 in https://github.com/swisnl/jQuery-contextMenu/pull/757
- Use Rails asset pipeline URL functions to load icon font if they exist by @mgreen-lz in https://github.com/swisnl/jQuery-contextMenu/pull/737
- + 1 more
✨ New Contributors
- @RentecTravis made their first contribution in https://github.com/swisnl/jQuery-contextMenu/pull/728
- @Speedphoenix made their first contribution in https://github.com/swisnl/jQuery-contextMenu/pull/751
- @ericprud made their first contribution in https://github.com/swisnl/jQuery-contextMenu/pull/734
- @daveherman71 made their first contribution in https://github.com/swisnl/jQuery-contextMenu/pull/757
- @mgreen-lz made their first contribution in https://github.com/swisnl/jQuery-contextMenu/pull/737
- @timgates42 made their first contribution in https://github.com/swisnl/jQuery-contextMenu/pull/733
- Full Changelog: https://github.com/swisnl/jQuery-contextMenu/compare/2.9.2...2.10.0
2.10.0
Phantom release, not available on npm
2.9.2
📋 Changes
- Fix reflow when adding click layer to page (fixed #721, thanks @Rhain)
2.9.1
📋 Changes
- 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
✨ Added
- Added `dataAttr` option to add arbitrary data attributes to menu items.
📋 Changed
- Updated dev dependencies.
2.8.1
📋 Changes
- Added FontAwesome `fab` class to known classes.
- Updated documentation for `callback` (thanks @arashdalir)
2.8.0
📋 Changes
- Added support for `events.preShow` so you can enable default browser menu if needed (thanks @terwarf)
2.7.1
📋 Changes
- A context menu appears outside the screen Under certain conditions (thanks @so-susa)
- No font-awesome icons visible in submenu ([Issue #659](https://github.com/swisnl/jQuery-contextMenu/issues/659)) thanks @betafritz and @klues
2.7.0
📋 Changes
- Added support for Font Awesome 5 ([Issue #593](https://github.com/swisnl/jQuery-contextMenu/issues/593)), ([Issue #593](https://github.com/swisnl/jQuery-contextMenu/issues/593))
- Add `getting started` to the documentation.
- Fixed typo in documentation which breaks the `callback` demo.
- Fixed typo `promis` => `promise` ([Issue #633](https://github.com/swisnl/jQuery-contextMenu/issues/633)).
- Fixed arguments for callback option in documentation ([Issue #571](https://github.com/swisnl/jQuery-contextMenu/issues/571)).
3.0.0-beta.2Pre-release
📋 Changes
- The contextmenu now checks `visible` on items once instead of twice. Fixes [issue 612](https://github.com/swisnl/jQuery-contextMenu/issues/612).
- Font awesome li height is now consistent again. Fixes issue Fixes [issue 612](https://github.com/swisnl/jQuery-contextMenu/issues/612).
2.6.4
📋 Changes
- `events.activated` is called without `options`as argument ([Issue #580](https://github.com/swisnl/jQuery-contextMenu/issues/580)).
- LayerClick sometimes breaks when the source is not a mouseevent ([Issue #132](https://github.com/swisnl/jQuery-contextMenu/issues/132)).
- The contextmenu now checks `visible` on items once instead of twice. Fixes [issue 612](https://github.com/swisnl/jQuery-contextMenu/issues/612).
- Font awesome li height is now consistent again ([Issue #610](https://github.com/swisnl/jQuery-contextMenu/issues/610)).
3.0.0-beta.1Pre-release
📋 Changes
- 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.
- Restructured the code to use Webpack with Babel. Build the code with `yarn run webpack`.
- Changed linting to ESLint.
- Moved to [BrowserStack](https://www.browserstack.com/) for browser testing.
- Added JSDoc for generated [API documentation](https://swisnl.github.io/jQuery-contextMenu/3.x/api).
- Added [3.x documentation](https://swisnl.github.io/jQuery-contextMenu/) on GitHub pages.
- The previous `opt` and `root` arguments are now described as `currentMenuData` and `rootMenuData`, which are documented in [ContextMenuData](https://swisnl.github.io/jQuery-contextMenu/3.x/api/ContextMenuData.html).
- Defined a few callback types to illustrate the arguments with which they are called.
- + 8 more
2.6.3
📋 Changes
- Fix for building in dist folder. 2.6.1 and 2.6.2 were affected.
2.6.2
📋 Changes
- Dev dependency ended up in normal dependencies.
2.6.1
📋 Changes
- 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](https://github.com/swisnl/jQuery-contextMenu/issues/555)).
- Fix for out of bounds problem on window edges (thanks @AliShahrivarian)
2.5.0
📋 Changes
- Callback function now supplies original event ([Issue #211](https://github.com/swisnl/jQuery-contextMenu/issues/211)) thanks @wizzard0
2.4.5
📋 Changes
- ContextMenu appears with wrong position ([Issue #502](https://github.com/swisnl/jQuery-contextMenu/issues/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](https://github.com/swisnl/jQuery-contextMenu/issues/454) thanks @kagant15
- Accesskey jQuery Modal Dialog not working ([Issue #506](https://github.com/swisnl/jQuery-contextMenu/issues/506) thanks @CiTRO33
- Fix submenu hover not always staying active if hovering over a submenu item. ([Issue #523](https://github.com/swisnl/jQuery-contextMenu/issues/523) thanks @tim-nz
- Change $node.click() to $node.get(0).click() to allow native event in HTML5 ([Issue #517](https://github.com/swisnl/jQuery-contextMenu/issues/517))
2.4.4
📋 Changes
- trigger is sometimes called on undefined objects because of typecheck on null. thanks @andreasrosdal
2.4.3
📋 Changes
- The inline style causes a Content Security Policy violation if style-src 'unsafe-inline' is not defined in the policy. [PR 498](https://github.com/swisnl/jQuery-contextMenu/pull/498) thanks @StealthDuck
- Removed GPL license from the comment in the plugin. Was already removed everywhere else. Only MIT applies now.
- Added SauceLabs tests for common browsers.
2.4.2
📋 Changes
- Focus not set on content editable element when right clicking the second time ([Issue #482](https://github.com/swisnl/jQuery-contextMenu/issues/482))
- `selectableSubMenu` broke disabling click menu (fixes ([Issue #493](https://github.com/swisnl/jQuery-contextMenu/issues/493))
2.4.1
📋 Changes
- Quick fix for error in visible check.
2.4.0Pre-release
📋 Changes
- Selectable Sub Menus (Issue #483 thanks @zyuhel
- The contextmenu shows even if all items are set to visible:false (Issue #473)
- Update documentation to include demo for async promise fixes (Issue #470)
2.3.0
📋 Changes
- Asynchronous promise support for submenu's ([Issue #429](https://github.com/swisnl/jQuery-contextMenu/issues/429)) thanks @Ruud-cb for the hard work.
- Include dist and src in package.json to easily use SCSS files ([PR #467](https://github.com/swisnl/jQuery-contextMenu/pull/467)) thanks @RoachMech
- Font family when using font awesome ([Issue #433](https://github.com/swisnl/jQuery-contextMenu/issues/433))
- Add check for `opt.$menu` is null when handling callbacks. ([Issue #462](https://github.com/swisnl/jQuery-contextMenu/issues/462)) thanks @andreasrosdal
- Make `<input>` and `<select>` tags xhtml compatible ([Issue #451](https://github.com/swisnl/jQuery-contextMenu/issues/451)) thanks @andreasplesch
- Update jQuery UI position to 1.12.1
- Fix demo for custom-command. ([Issue #294](https://github.com/swisnl/jQuery-contextMenu/issues/294))
- Fix broken link and demo title ([Issue #458](https://github.com/swisnl/jQuery-contextMenu/issues/458))
2.2.4
📋 Changes
- Fixed error on try to recreate menu after destroy ([Issue #397](https://github.com/swisnl/jQuery-contextMenu/issues/397))
2.2.3
📋 Changes
- Callbacks are now called from the scope of the menu the item is in (like a submenu). For now they overwrite root callbacks only if the item is not in a submenu, this so the callbacks are always correct. Unfortunately this will also mean the callbacks option is still not complete if you use the same key for an item in any place. Cant fix that easily.
2.2.2
📋 Changes
- Add option to show item title as HTML (thanks @brassard)
- Full Font Awesome support
- Use relative units for css fixes ([Issue #386](https://github.com/swisnl/jQuery-contextMenu/issues/386)) (thanks @RoachMech)
- Change unicode characters in CSS to readable strings.
- Improved item styles (thanks @anseki)
- Force woff2 font creation for Windows some machines.
- Fix so that disabled items can't get focus anymore (thanks @anseki)
- Fix so menu size is calculated better no items will take up 2 lines again (thanks @anseki)
- + 7 more
2.2.0
📋 Changes
- Add option to show item title as HTML (thanks @brassard)
- Full Font Awesome support
- Use relative units for css fixes ([Issue #386](https://github.com/swisnl/jQuery-contextMenu/issues/386)) (thanks @RoachMech)
- Change unicode characters in CSS to readable strings.
- Improved item styles (thanks @anseki)
- Force woff2 font creation for Windows some machines.
- Fix so that disabled items can't get focus anymore (thanks @anseki)
- Fix so menu size is calculated better no items will take up 2 lines again (thanks @anseki)
- + 2 more
2.1.1
📋 Changes
- Fixed a problem when using the open function with custom arguments (thanks @RareDevil)
- `width` is increased when repoening menu. Fixed by using outerwidth to calculate width. Fixes #360 (thanks @anseki)
- Submenus are not collapsed when the menu is closed fixes #358 (thanks @anseki)
- Small delay in checking for autohide to fix missing the menu by a pixel or two. Fixes #347 (thanks @Risord)
- Check if an item is not hidden in any way when scrolling through items with the keyboard. Fixes #348
- Change links and base url of documentation to https as mentioned by @OmgImAlexis in PR#345
2.1.0
📋 Changes
- Added support for providing a function as zIndex value in options object (thanks @eivindga)
- Fixed a switch to use the correct type for separators (thanks @RareDevil)
- Fixed the problem with submenus size wrongly (Issue #308) (thanks @RareDevil)
- Incorrect entry on package.json (Issue #336) (thanks @Dijir)
- Gray out disabled icons as well as text (Issue #337) (thanks @r02b)
- Optimized generated CSS so that context-menu-icon class can be used to overwrite icon CSS.
- Positioning of contextmenu when using appendTo (thanks @mrMarco)
- Check to see if target have a higher zIndex than the contextmenu in the key event handler (thanks @RareDevil)
1.11.0 (Januari 8th 2016)1.11.0
📋 Changes
- Added support for providing a function as zIndex value in options object (thanks @eivindga)
- Fixed a switch to use the correct type for separators (thanks @RareDevil)
- Fixed the problem with submenus size wrongly (Issue #308) (thanks @RareDevil)
- Incorrect entry on package.json (Issue #336) (thanks @Dijir)
- Positioning of contextmenu when using appendTo (thanks @mrMarco)
- Check to see if target have a higher zIndex than the contextmenu in the key event handler (thanks @RareDevil)
