Fixed #5105 - Highlight state changes on Checkbox selection mode

This commit is contained in:
tugcekucukoglu 2024-01-18 16:05:30 +03:00
parent 7b7eb3df1d
commit 19f9813d16
6 changed files with 16 additions and 4 deletions

View file

@ -108,7 +108,7 @@ const classes = {
instance.node.styleClass,
{
'p-treenode-selectable': instance.selectable,
'p-highlight': instance.checkboxMode ? instance.checked : instance.selected
'p-highlight': instance.checkboxMode && instance.$parentInstance.highlightOnSelect ? instance.checked : instance.selected
}
],
toggler: 'p-tree-toggler p-link',