Fixed #543 - Tree selection is broken when ripple is enabled

pull/548/head
Cagatay Civici 2020-10-10 18:47:15 +03:00
parent e708cc719e
commit b68e9a1da5
2 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ export default {
if (this.selectionMode != null && event.node.selectable !== false) {
const metaSelection = event.nodeTouched ? false : this.metaKeySelection;
const _selectionKeys = metaSelection ? this.handleSelectionWithMetaKey(event) : this.handleSelectionWithoutMetaKey(event);
this.$emit('update:selectionKeys', _selectionKeys);
}
},

View File

@ -62,7 +62,7 @@ export default {
this.$emit('node-toggle', node);
},
onClick(event) {
if (DomHandler.hasClass(event.target, 'p-tree-toggler') || DomHandler.hasClass(event.target, 'p-tree-toggler-icon')) {
if (DomHandler.hasClass(event.target, 'p-tree-toggler') || DomHandler.hasClass(event.target.parentElement, 'p-tree-toggler')) {
return;
}