Skip to content

Commit

Permalink
fix(message): remove second host animation since it makes ngIf duplic…
Browse files Browse the repository at this point in the history
…ate the component (#984)

for some reason having 2 host animations on a component combined with ngIf makes the component stay when setting the ngIf input as false, and because of that when setting it back to true it adds it again
  • Loading branch information
emoralesb05 authored Nov 21, 2017
1 parent b82dff1 commit 7ef2d79
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/platform/core/message/message.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export class TdMessageContainerDirective {
styleUrls: ['./message.component.scss'],
animations: [
TdCollapseAnimation({ duration: 100 }),
TdFadeInOutAnimation({ duration: 100 }),
],
})
export class TdMessageComponent implements AfterViewInit {
Expand All @@ -31,14 +30,6 @@ export class TdMessageComponent implements AfterViewInit {
@ViewChild(TdMessageContainerDirective) _childElement: TdMessageContainerDirective;
@ViewChild(TemplateRef) _template: TemplateRef<any>;

/**
* Binding host to tdFadeInOut animation
*/
@HostBinding('@tdFadeInOut')
get fadeAnimation(): boolean {
return this._opened;
}

/**
* Binding host to tdCollapse animation
*/
Expand Down

0 comments on commit 7ef2d79

Please sign in to comment.