Fixed #264: Clicking items in the context menu not working on Firefox

This commit is contained in:
jos 2016-02-01 20:39:50 +01:00
parent 69f106a911
commit 2a4fa900e6
2 changed files with 6 additions and 1 deletions

View File

@ -3,6 +3,11 @@
https://github.com/josdejong/jsoneditor 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 ## 2016-01-21, version 5.1.2
- Improvements in sanitizing invalid JSON. - Improvements in sanitizing invalid JSON.

View File

@ -72,7 +72,7 @@ function ContextMenu (items, options) {
button.title = item.title; button.title = item.title;
} }
if (item.click) { if (item.click) {
button.onclick = function () { button.onclick = function (event) {
event.preventDefault(); event.preventDefault();
me.hide(); me.hide();
item.click(); item.click();