diff --git a/components/lib/picklist/BasePickList.vue b/components/lib/picklist/BasePickList.vue index 2ac4a262f..3197ca54f 100644 --- a/components/lib/picklist/BasePickList.vue +++ b/components/lib/picklist/BasePickList.vue @@ -47,12 +47,13 @@ const classes = { ], sourceControls: 'p-picklist-buttons p-picklist-source-controls', sourceWrapper: 'p-picklist-list-wrapper p-picklist-source-wrapper', + sourceHeader: 'p-picklist-header', sourceList: 'p-picklist-list p-picklist-source-list', - item: ({ context }) => [ + item: ({ instance, item, id, listIndex }) => [ 'p-picklist-item', { - 'p-highlight': context.active, - 'p-focus': context.focused + 'p-highlight': instance.isSelected(item, listIndex), + 'p-focus': id === instance.focusedOptionId } ], buttons: 'p-picklist-buttons p-picklist-transfer-buttons', diff --git a/components/lib/picklist/PickList.vue b/components/lib/picklist/PickList.vue index 8e10e1877..e4682f684 100755 --- a/components/lib/picklist/PickList.vue +++ b/components/lib/picklist/PickList.vue @@ -33,7 +33,7 @@
-
+
@@ -134,15 +128,7 @@