Skip to content

Commit 4ab56f2

Browse files
authored
fix(titanium-chip): pass disabled to remove button (#639)
* fix(titanium-chip): pass disabled to remove button * fix lint
1 parent 0861464 commit 4ab56f2

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

packages/leavittbook/src/demos/titanium-chip/titanium-chip-playground.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,13 @@ export class TitaniumChipPlayground extends LitElement {
6565
</titanium-chip>
6666
6767
<titanium-chip non-interactive label="Non-interactive" title="This is a non-interactive chip"> </titanium-chip>
68+
6869
<titanium-chip disabled label="Disabled"> </titanium-chip>
70+
71+
<titanium-chip disabled label="Disabled with remove button" input-chip @remove=${() => alert('remove!')} @click=${() => alert('click!')}>
72+
<md-icon slot="icon">task_alt</md-icon>
73+
</titanium-chip>
74+
6975
<titanium-chip href="https://google.com" target="_blank" download="google.xls" label="Href demo"> </titanium-chip>
7076
`;
7177
}

packages/web/titanium/chip/chip.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ export class TitaniumChip extends LitElement {
200200
${
201201
this.inputChip
202202
? html`<md-icon-button
203+
?disabled=${this.disabled}
203204
@click=${(e: MouseEvent) => {
204205
e.stopPropagation();
205206
this.dispatchEvent(new Event('remove'));

0 commit comments

Comments
 (0)