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

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

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

Loading…
Cancel
Save