Commit 623e553b authored by Benjamin Fischer's avatar Benjamin Fischer

File2: do not open(Menu) for when event target was an input

parent 67c7ddbb
......@@ -77,7 +77,7 @@ define([
open: function(ev) {
if (ev.defaultPrevented) return;
var t = ev.target;
if (t && t.nodeName == "INPUT" && t.type == "checkbox") return;
if (t && t.nodeName == "INPUT") return;
if (vispa.device.isMac ? ev.metaKey : ev.ctrlKey)
this.selected = !this.selected;
else
......@@ -85,6 +85,8 @@ define([
},
openMenu: function(ev) {
if (ev.defaultPrevented) return;
var t = ev.target;
if (t && t.nodeName == "INPUT") return;
this.$dispatch("openMenu", {
data: this.data,
}, ev);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment