You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tracing back to the source code, I reckoned that order list does not trigger onItemClick when user click an item (only keyboard event would work).
Workaround until the issue is fixed:
<p-orderlist
#ol
[value]="data"
dataKey="id"
[(selection)]="selection" // NOT WORK
(onSelectionChange)="log($event)" // NOT WORK
>
<ng-template #item let-item>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Tracing back to the source code, I reckoned that order list does not trigger onItemClick when user click an item (only keyboard event would work).
Workaround until the issue is fixed:
<p-orderlist
#ol
[value]="data"
dataKey="id"
[(selection)]="selection" // NOT WORK
(onSelectionChange)="log($event)" // NOT WORK
>
<ng-template #item let-item>
<div
(click)="ol.onItemClick($event, item)"
(keypress.enter)="ol.onItemClick($event, item)"
tabindex="0"
>
{{ item.label }}
Beta Was this translation helpful? Give feedback.
All reactions