mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #5105 - Highlight state changes on Checkbox selection mode
This commit is contained in:
parent
7b7eb3df1d
commit
19f9813d16
6 changed files with 16 additions and 4 deletions
|
@ -58,6 +58,10 @@ export default {
|
|||
type: String,
|
||||
default: undefined
|
||||
},
|
||||
highlightOnSelect: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
scrollHeight: {
|
||||
type: String,
|
||||
default: null
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue