Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

Commit

Permalink
fix(chips): Move trailing icon to isolated gridcell (#2097)
Browse files Browse the repository at this point in the history
closes #2096
  • Loading branch information
trimox committed Feb 16, 2020
1 parent 4d50928 commit 4f3ac9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/chips/chip-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ export class MdcChipSet extends MDCComponent<MDCChipSetFoundation>

this._dropSubscriptions();
this._chipRemovalSubscription?.unsubscribe();
this._foundation?.destroy();
}

// Implemented as part of ControlValueAccessor.
Expand Down
6 changes: 5 additions & 1 deletion packages/chips/chip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ export class MdcChipCheckmark {
<mdc-chip-text *ngIf="label">{{label}}</mdc-chip-text>
<ng-content></ng-content>
</mdc-chip-primary-action>
</span>`,
</span>
<span role="gridcell" *ngIf="!!trailingIcon">
<ng-content select="mdc-chip-icon[trailing]"></ng-content>
</span>
`,
encapsulation: ViewEncapsulation.None,
changeDetection: ChangeDetectionStrategy.OnPush,
providers: [MdcRipple]
Expand Down

0 comments on commit 4f3ac9d

Please sign in to comment.