Skip to content

Commit

Permalink
fix: bump cdk 11 and fix drag error
Browse files Browse the repository at this point in the history
  • Loading branch information
HandsomeButterball committed Jul 1, 2021
1 parent 074a4d4 commit 052264c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"dependencies": {
"@angular/animations": "~11.2.14",
"@angular/cdk": "~10.0.0",
"@angular/cdk": "~11.2.12",
"@angular/common": "~11.2.14",
"@angular/compiler": "~11.2.14",
"@angular/core": "~11.2.14",
Expand Down
4 changes: 2 additions & 2 deletions packages/gantt/src/components/bar/bar.component.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div class="gantt-bar-layer">
<div *ngIf="item.draggable && ganttUpper.draggable" class="drag-handles">
<ng-container>
<span class="handle"></span>
<span class="handle"></span>
<span class="handle" (mousedown)="stopPropagation($event)"></span>
<span class="handle" (mousedown)="stopPropagation($event)"></span>
</ng-container>
</div>
<div *ngIf="item.linkable && ganttUpper.linkable" class="link-handles">
Expand Down
4 changes: 4 additions & 0 deletions packages/gantt/src/components/bar/bar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ export class NgxGanttBarComponent extends GanttItemUpper implements OnInit, Afte
}
}

stopPropagation(event: Event) {
event.stopPropagation();
}

ngOnDestroy() {
super.onDestroy();
}
Expand Down

0 comments on commit 052264c

Please sign in to comment.