mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactor #3965 - For OrderList
This commit is contained in:
parent
b37904f0d9
commit
c98ab6e3fc
2 changed files with 8 additions and 14 deletions
|
@ -53,11 +53,11 @@ const classes = {
|
|||
header: 'p-orderlist-header',
|
||||
container: 'p-orderlist-list-container',
|
||||
list: 'p-orderlist-list',
|
||||
item: ({ context }) => [
|
||||
item: ({ instance, item, id }) => [
|
||||
'p-orderlist-item',
|
||||
{
|
||||
'p-highlight': context.active,
|
||||
'p-focus': context.focused
|
||||
'p-highlight': instance.isSelected(item),
|
||||
'p-focus': id === instance.focusedOptionId
|
||||
}
|
||||
]
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue