Skip to content

Commit

Permalink
fix(module:dropdown): resolve leaving errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ng-nest-moon committed Jul 31, 2023
1 parent fc27d5b commit 22bab47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ng-nest/ui/dropdown/dropdown-portal.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class XDropdownPortalComponent implements OnDestroy {
@HostBinding('@x-connect-base-animation') public placement!: XPositionTopBottom;
@HostListener('@x-connect-base-animation.done', ['$event']) done(event: { toState: any }) {
this.animating(false);
event.toState === 'void' && this.destroyPortal();
event.toState === 'void' && this.destroyPortal && this.destroyPortal();
}
@HostListener('@x-connect-base-animation.start', ['$event']) start() {
this.animating(true);
Expand Down Expand Up @@ -193,6 +193,7 @@ export class XDropdownPortalComponent implements OnDestroy {
}
this.node = node;
if (!this.portalAttached()) {
console.log(this.node);
this.createPortal();
}
this.cdr.detectChanges();
Expand Down

0 comments on commit 22bab47

Please sign in to comment.