-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(stepper): fix change detection issue when number of step content …
…children changed (#989)
- Loading branch information
1 parent
45797ed
commit c9d24d6
Showing
2 changed files
with
29 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
<ng-content></ng-content> | ||
<div class="td-step-body"> | ||
<div class="td-step-content-wrapper" | ||
[@tdCollapse]="!active"> | ||
<div #contentRef cdkScrollable [class.td-step-content]="contentRef.children.length || contentRef.textContent.trim()"> | ||
[@tdCollapse]="!active"> | ||
<div #contentRef cdkScrollable [class.td-step-content]="hasContent"> | ||
<ng-content select="[td-step-body-content]"></ng-content> | ||
</div> | ||
<div #actionsRef [class.td-step-actions]="actionsRef.children.length || actionsRef.textContent.trim()"> | ||
<div #actionsRef | ||
[class.td-step-actions]="hasActions"> | ||
<ng-content select="[td-step-body-actions]"></ng-content> | ||
</div> | ||
</div> | ||
<div #summaryRef [@tdCollapse]="active || !isComplete()" | ||
[class.td-step-summary]="summaryRef.children.length || summaryRef.textContent.trim()"> | ||
<div #summaryRef | ||
[@tdCollapse]="active || !isComplete()" | ||
[class.td-step-summary]="hasSummary"> | ||
<ng-content select="[td-step-body-summary]"></ng-content> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters