Fix bug where parent entry could be selected when clicking on a virtual entry

pull/6730/head
Aleksander Machniak 5 years ago
parent 70a0976be1
commit 187b51fd82

@ -138,8 +138,9 @@ function rcube_treelist_widget(node, p)
return true;
var node = p.selectable ? indexbyid[dom2id($(this))] : null;
if (node && !node.virtual) {
select(node.id);
if (node) {
if (!node.virtual)
select(node.id);
e.stopPropagation();
}
})

Loading…
Cancel
Save