Fixed #264: Clicking items in the context menu not working on Firefox
This commit is contained in:
parent
69f106a911
commit
2a4fa900e6
|
@ -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.
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue