Fixed #543 - Tree selection is broken when ripple is enabled
parent
e708cc719e
commit
b68e9a1da5
|
@ -104,7 +104,7 @@ export default {
|
||||||
if (this.selectionMode != null && event.node.selectable !== false) {
|
if (this.selectionMode != null && event.node.selectable !== false) {
|
||||||
const metaSelection = event.nodeTouched ? false : this.metaKeySelection;
|
const metaSelection = event.nodeTouched ? false : this.metaKeySelection;
|
||||||
const _selectionKeys = metaSelection ? this.handleSelectionWithMetaKey(event) : this.handleSelectionWithoutMetaKey(event);
|
const _selectionKeys = metaSelection ? this.handleSelectionWithMetaKey(event) : this.handleSelectionWithoutMetaKey(event);
|
||||||
|
|
||||||
this.$emit('update:selectionKeys', _selectionKeys);
|
this.$emit('update:selectionKeys', _selectionKeys);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -62,7 +62,7 @@ export default {
|
||||||
this.$emit('node-toggle', node);
|
this.$emit('node-toggle', node);
|
||||||
},
|
},
|
||||||
onClick(event) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue