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

Commit 4f3ac9d

Browse files
authored
fix(chips): Move trailing icon to isolated gridcell (#2097)
closes #2096
1 parent 4d50928 commit 4f3ac9d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

packages/chips/chip-set.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ export class MdcChipSet extends MDCComponent<MDCChipSetFoundation>
216216

217217
this._dropSubscriptions();
218218
this._chipRemovalSubscription?.unsubscribe();
219+
this._foundation?.destroy();
219220
}
220221

221222
// Implemented as part of ControlValueAccessor.

packages/chips/chip.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,11 @@ export class MdcChipCheckmark {
101101
<mdc-chip-text *ngIf="label">{{label}}</mdc-chip-text>
102102
<ng-content></ng-content>
103103
</mdc-chip-primary-action>
104-
</span>`,
104+
</span>
105+
<span role="gridcell" *ngIf="!!trailingIcon">
106+
<ng-content select="mdc-chip-icon[trailing]"></ng-content>
107+
</span>
108+
`,
105109
encapsulation: ViewEncapsulation.None,
106110
changeDetection: ChangeDetectionStrategy.OnPush,
107111
providers: [MdcRipple]

0 commit comments

Comments
 (0)