Skip to content

Commit

Permalink
fix(module: tree): fix nz-tree-node keep dragging class with nzBefore…
Browse files Browse the repository at this point in the history
…Drop (#8015)

* fix(module: tree): fix nz-tree-node keep dragging class when nzBeforeDrop passed in

* fix(module:tree): fix dragging class

* fix(module:tree): add  markForCheck

---------

Co-authored-by: BBBoy01 <[email protected]>
  • Loading branch information
simplejason and BBboy01 authored Jul 16, 2023
1 parent 9b3e6cb commit 2d0b3f7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/tree/tree-node.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,11 @@ export class NzTreeNodeBuiltinComponent implements OnInit, OnChanges, OnDestroy
this.draggingKey = null;
const eventNext = this.nzTreeService.formatEvent('dragend', this.nzTreeNode, e);
this.nzOnDragEnd.emit(eventNext);
} else {
// clear dragging state
this.draggingKey = null;
this.markForCheck();
console.log('end');
}
});
}
Expand Down

0 comments on commit 2d0b3f7

Please sign in to comment.