Skip to content

Commit 2d0b3f7

Browse files
simplejasonBBboy01
andauthored
fix(module: tree): fix nz-tree-node keep dragging class with nzBeforeDrop (#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]>
1 parent 9b3e6cb commit 2d0b3f7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/tree/tree-node.component.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,11 @@ export class NzTreeNodeBuiltinComponent implements OnInit, OnChanges, OnDestroy
357357
this.draggingKey = null;
358358
const eventNext = this.nzTreeService.formatEvent('dragend', this.nzTreeNode, e);
359359
this.nzOnDragEnd.emit(eventNext);
360+
} else {
361+
// clear dragging state
362+
this.draggingKey = null;
363+
this.markForCheck();
364+
console.log('end');
360365
}
361366
});
362367
}

0 commit comments

Comments
 (0)