diff --git a/HISTORY.md b/HISTORY.md index 4b47a69..a2e8722 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -3,6 +3,11 @@ https://github.com/josdejong/jsoneditor +## not yet released, version 5.1.3 + +- Fixed #264: Clicking items in the context menu not working on Firefox. + + ## 2016-01-21, version 5.1.2 - Improvements in sanitizing invalid JSON. diff --git a/src/js/ContextMenu.js b/src/js/ContextMenu.js index 412b5c4..683c614 100644 --- a/src/js/ContextMenu.js +++ b/src/js/ContextMenu.js @@ -72,7 +72,7 @@ function ContextMenu (items, options) { button.title = item.title; } if (item.click) { - button.onclick = function () { + button.onclick = function (event) { event.preventDefault(); me.hide(); item.click();