mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +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
|
@ -156,10 +156,10 @@ const classes = {
|
|||
wrapper: 'p-multiselect-items-wrapper',
|
||||
list: 'p-multiselect-items p-component',
|
||||
itemGroup: 'p-multiselect-item-group',
|
||||
item: ({ instance, option, index, getItemOptions }) => [
|
||||
item: ({ instance, option, index, getItemOptions, props }) => [
|
||||
'p-multiselect-item',
|
||||
{
|
||||
'p-highlight': instance.isSelected(option),
|
||||
'p-highlight': instance.isSelected(option) && props.highlightOnSelect,
|
||||
'p-focus': instance.focusedOptionIndex === instance.getOptionIndex(index, getItemOptions),
|
||||
'p-disabled': instance.isOptionDisabled(option)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue