- Context menu no longer jumps to the top of the screen #749
- Fix reflow when adding click layer to page (fixed #721, thanks @Rhain)
- Fix error when closing the menu by clicking on the page without any element under that click point. (fixes #717)
- Upgrades dependencies
- Added
dataAttr
option to add arbitrary data attributes to menu items.
- Updated dev dependencies.
- Added FontAwesome
fab
class to known classes.
- Updated documentation for
callback
(thanks @arashdalir)
- Added support for
events.preShow
so you can enable default browser menu if needed (thanks @terwarf)
- 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
- 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).
- Added support for Font Awesome 5 (Issue #593), (Issue #593)
events.activated
is called withoutoptions
as 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).
- Broke build script after 2.5.0 which ment no updates to dist folder (Issue #578).
- Dev dependency ended up in normal dependencies.
- 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
- Fix for out of bounds problem on window edges (thanks @AliShahrivarian)
- Callback function now supplies original event (Issue #211) thanks @wizzard0
- 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
- trigger is sometimes called on undefined objects because of typecheck on null. thanks @andreasrosdal
-
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 SauceLabs tests for common browsers.
-
Focus not set on content editable element when right clicking the second time (Issue #482)
-
selectableSubMenu
broke disabling click menu (fixes (Issue #493)
- Quick fix for error in visible check (Issue #484)
- Tweaked positioning of submenu (Issue #387)
- 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)
- Asynchronous promise support for submenu's (Issue #429) thanks @Ruud-cb for the hard work.
- Include dist and src in package.json to easily use SCSS files (PR #467) thanks @RoachMech
- Font family when using font awesome (Issue #433)
- Add check for
opt.$menu
is null when handling callbacks. (Issue #462) thanks @andreasrosdal
- Make
<input>
and<select>
tags xhtml compatible (Issue #451) thanks @andreasplesch - Update jQuery UI position to 1.12.1
- Fix demo for custom-command. (Issue #294)
- Fix broken link and demo title (Issue #458)
- Error on try to recreate menu after destroy (Issue #397)
- 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. Issue #413.
- Alias for 'cm_seperator' type: 'cm_separator' (thanks @nelson6e65)
- Removed old integration tests, framework on which they were built is abandoned.
- Enable jQuery 3 tests in TravisCI
- jQuery 3 support was fixed again, was a result of jQuery UI (Fixes #407)
- Add checks for null before using opt.$menu and root.$menu. Fixes #352 (thanks @andreasrosdal)
- Small fix for color or
input
option on hover
- Documentation added for cm_seperator (thanks @nelson6e65)
- Fix typo in items options documentation (thanks @nelson6e65)
- Fix typo in animation: fadeOut (thanks @avi-meslati-sp)
- Fix typo in docs code:
show
is used twice (thanks @kgeorgiou) - Fix in async documentation.
- Add option to show item title as HTML (thanks @brassard)
- Full Font Awesome support
- Use relative units for css fixes (Issue #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)
- Fix bower.json (thanks @nelson6e65)
- Fix typo in documentation for "position" and "build" callback (thanks @mmcev106)
- 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
- 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)
- Remove executable bit from jquery.contextMenu.js (thanks @jacknagel)
- Fixed a problem there was when using a function for icons (thanks @RareDevil)
- Fixed a problem where submenus resized wrong (thanks @RareDevil)
- Fixed a problem where the contextmenu would open another menu (thanks @RareDevil) - (Issue #252 and Issue #293)
- Fixed regression of node name's not being appended to the label of input elements. (thanks @RareDevil)
- Add check that root.$layer exists, to prevent calling hide() on an defined object. (thanks @andreasrosdal)
- This version changes the default names of the icon classes in order to stop CSS conflicts with frameworks which define the class 'icon'. In order to keep the icon names the same as before this change you can change the defaults on the classnames for the icons (docs on classNames option). The classnames will probably be "context-menu-icon-*" as proposed earlier by @rodneyrehm.
- You can not use SASS to customize your contextmenu. The gulp command build-icons takes all the SVG icons from src/icons and builds them into a font. In order to this we needed to break backwards compatibility. This does mean the new CSS does not have the old .icon class defined which makes it a lot more stable within CSS frameworks. The first revision of the documentation is found here.
- The 1.x branch will be maintained for a while with bugfixes. But support for 1.x will be dropped in the coming months.
- Reverted the change from 1.7.0: .html() changed back to .text() since it is an security issue (thanks @arai-a)
- Added gulp command (integration-test-paths) to change the paths in the integration tests to the correct path after they are overwritten by the documentation generator.
- Make sure the contextmenu is not outside the client area by (thanks to @arai-a)
- Update jQuery dependecy so that it will not result in double installation of jQuery when using npm (thanks to @fredericlb)
- Fixed a bug where the classNames options would fail on a submenu.
- New documentation site and generation using couscous
- Make classes configurable for those that can easily conflict. See the docs on classNames option. This also prepares to change classnames to non conflicting defaults so the hassle with frameworks as bootstrap will stop.
- Fix for handling of seperator string. It threw an error on the protected property of String.$node
- Fix for opening the contextmenu at coordinate 0,0 (by Andreme)
- Fixed check for jQuery UI (Issue #182)
- Updated doc for function argument for icon
- Updated readme.
- Updated dist files
- Added dist folder with compiled JS and CSS, added these files to package and bower configuration.
- Fixed doc link for jQuery UI position (Issue #274)
- Item icon can now be a callback to dynamically decide on icon class. - (Issue #158, Issue #129, Issue #151, Issue #249)
- Small fix to calculating width and height on screen edges when padding is present.
- Touch support optimisations (by kccarter76)
- changed .text to .html so there are no extra span's fixed - (Issue #252)
- added visibility callback to item definition
- copy the HTML5 icon attribute when creating from HTML5 elements
- growing menu when opening multiple times fixed - (Issue #197)
- fixed failure to run tests
- changes for new maintainer
- looking for maintainer note
- publish to npm
- fixing bower manifest
- fixing "opening a second menu can break the layer" - (Issue #105)
- fixing jQuery plugin manifest, again. yep. I'm that kind of a guy. :(
- fixing jQuery plugin manifest
- fixing "menu won't close" regression introduced by 1.6.1
- fixing potential html parsing problem
- upgrading to jQuery UI position v1.10.0
- replaced
CRLF
byLF
(no idea how this happened in the first place...) - adding
options.reposition
to dis/allow simply relocating a menu instead of rebuilding it (Issue #104)
- adding DOM Element bound context menus - (Issue 88)
- adding class
context-menu-active
to define state on active trigger element - (Issue 92) - adding demo for TouchSwipe activation
- adding export of internal functions and event handlers - (Issue 101)
- fixing key "watch" might translate to Object.prototype.watch in callbacks map - (Issue 93)
- fixing menu and submenu width calculation - (Issue 18)
- fixing unused variables - (Issue 100)
- fixing iOS "click" compatibility problem - (Issue 83)
- fixing separators to not be clickable - (Issue 85)
- fixing issues with fixed positioned triggers (Issue 95)
- fixing word break problem - (Issue 80)
- adding context menu options to input command events (Issue 72, dtex)
- code cosmetics for JSLint
- fixing issue with animation and remove on hide (Issue #64)
- fixing backdrop would not remove on destroy (Issue #63)
Note: git tag of version is v1.6.20
?!
- fixing backdrop would not position properly in IE6 (Issue #59)
- fixing nested input elements not accessible in Chrome / Safari (Issue #58)
Note: git tag of version is missing...?!
- fixing sub-menu positioning when
$.ui.position
is not available (Issue #56)
Note: git tag of version is missing...?!
- fixing html5
<menu>
import (Issue #53)
- fixing
options
to default tooptions.trigger = "right"
- fixing variable name typo (Within Issue #51)
- fixing menu not closing while opening other menu (Within Issue #51)
- adding workaround for
contextmenu
-bug in Firefox 12 (Within Issue #51)
- added vendor-prefixed user-select to CSS
- fixed issue with z-indexing when
<body>
is used as a trigger (Issue #49)
- allowing to directly open another element's menu while a menu is shown (Issue #48)
- fixing autohide option that would not properly hide the menu
- options.build() would break default options (Issue #47)
- $.contextMenu('destroy') would not remove backdrop
- exposing $trigger to dynamically built custom menu-item types (Issue #42)
- fixing repositioning of open menu (formerly accidental re-open)
- adding asynchronous example
- dropping ignoreRightClick in favor of proper event-type detection
- prevent invoking callback of first item of a sub-menu when clicking on the sub-menu-item (Issue #41)
- providing
opt.$trigger
to show event (Issue #39)
- ignoreRightClick would not prevent right click when menu is already open (Issue #38)
- If build() did not return any items, an empty menu was shown (Issue #33)
- Capturing Page Up and Page Down keys to ignore like space (Issue #30)
- Added Home / End keys to jump to first / last command of menu (Issue #29)
- Bug hitting enter in an <input> would yield an error (Issue #28)
- Non-ASCII character in jquery.contextMenu.js caused compatibility issues in Rails (Issue #27)
- Bug contextmenu event was not passed to build() callback (Issue #24)
- Bug sub-menu markers would not display properly in Safari and Chrome (Issue #25)
- Bug Internet Explorer would not close menu when giving input elements focus (Issue #23)
- Bug not set z-index of sub-menus might not overlap the main menu correctly (Issue #22)
- Bug
console.log is undefined
- Bug sub-menus would not properly update their disabled states (Issue #16) [again…]
- Bug sub-menus would not properly adjust width accoring to min-width and max-width (Issue #18)
- Bug sub-menus would not properly update their disabled states (Issue #16)
- Added dynamic menu creation (Issue #15)
- Bug positioning <menu> when trigger element is
position:fixed
(Issue #14)
- Bug key handler would caputure all key strokes while menu was visible (essentially disabling F5 and co.)
- Bug opt.$trigger was not available to disabled callbacks
- jQuery bumped to 1.7.1
- Bug where <menu> imports would not pass action (click event) properly
- Upgraded to jQuery 1.7 (changed dependecy!)
- Added internal events
contextmenu:focus
,contextmenu:blur
andcontextmenu:hide
- Added custom <command> types
- Bug where
className
wasn't properly set on <menu>
- Added support for accesskeys
- Bug where two sub-menus could be open simultaneously
- Bug in HTML5 import
- Bug in HTML5 detection
- Added compatibility to <menuitem> for Firefox 8
- Upgraded to jQuery 1.6.2
- Bug #1 TypeError on HTML5 action passthru
- Bug #2 disbaled callback not invoked properly
- Feature #3 auto-hide option for hover trigger
- Feature #4 option to use a single callback for all commands, rather than registering the same function for each item
- Option to ignore right-click (original "contextmenu" event trigger) for non-right-click triggers
- Initial $.contextMenu handler