Skip to content

Commit

Permalink
Fixed #14622 - PickList | DoubleClick on list item does not move item…
Browse files Browse the repository at this point in the history
… every item
  • Loading branch information
mehmetcetin01140 committed Jan 31, 2024
1 parent 239b86c commit 111add9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/app/components/picklist/picklist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ import {
[cdkDragDisabled]="!dragdrop"
(click)="onItemClick($event, item, selectedItemsSource, onSourceSelect, idSource + '_' + i)"
(mousedown)="onOptionMouseDown(i, SOURCE_LIST)"
(dblclick)="onSourceItemDblClick()"
(dblclick)="onSourceItemDblClick($event, item, selectedItemsSource, onSourceSelect, idSource + '_' + i)"
(touchend)="onItemTouchEnd()"
*ngIf="isItemVisible(item, SOURCE_LIST)"
role="option"
Expand Down Expand Up @@ -278,7 +278,7 @@ import {
[cdkDragDisabled]="!dragdrop"
(click)="onItemClick($event, item, selectedItemsTarget, onTargetSelect, idTarget + '_' + i)"
(mousedown)="onOptionMouseDown(i, TARGET_LIST)"
(dblclick)="onTargetItemDblClick()"
(dblclick)="onTargetItemDblClick($event, item, selectedItemsTarget, onTargetSelect, idTarget + '_' + i)"
(touchend)="onItemTouchEnd()"
*ngIf="isItemVisible(item, TARGET_LIST)"
role="option"
Expand Down Expand Up @@ -951,19 +951,19 @@ export class PickList implements AfterViewChecked, AfterContentInit {
this.focusedOptionIndex = index;
}

onSourceItemDblClick() {
onSourceItemDblClick(event: Event | any, item: any, selectedItems: any[], callback: EventEmitter<any>, itemId?: string) {
if (this.disabled) {
return;
}

this.onItemClick(event, item, selectedItems, callback, itemId);
this.moveRight();
}

onTargetItemDblClick() {
onTargetItemDblClick(event: Event | any, item: any, selectedItems: any[], callback: EventEmitter<any>, itemId?: string) {
if (this.disabled) {
return;
}

this.onItemClick(event, item, selectedItems, callback, itemId);
this.moveLeft();
}

Expand Down

0 comments on commit 111add9

Please sign in to comment.