Skip to content

Commit 9b06d67

Browse files
committed
chore(chip): apply review suggestions
1 parent 0a9a0cd commit 9b06d67

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

samples/inputs/chip/multiple/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ export class ChipMultiple {
77
constructor() {
88
const chips = document.querySelectorAll('igc-chip[removable]');
99
chips.forEach(chip => {
10-
chip.addEventListener('igcRemove', this.onRemove);
10+
chip.addEventListener('igcRemove', (e) => this.onRemove(e));
1111
});
12-
12+
1313
registerIconFromText(
1414
'cancel',
1515
'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"/></svg>'

samples/inputs/chip/overview/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export class ChipOverview {
77
constructor() {
88
const chips = document.querySelectorAll('igc-chip[removable]');
99
chips.forEach(chip => {
10-
chip.addEventListener('igcRemove', this.onRemove);
10+
chip.addEventListener('igcRemove', (e) => this.onRemove(e));
1111
});
1212

1313
registerIconFromText(

samples/inputs/chip/size/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ export class ChipSize {
88
constructor() {
99
const chips = document.querySelectorAll('igc-chip[removable]');
1010
chips.forEach(chip => {
11-
chip.addEventListener('igcRemove', this.onRemove);
11+
chip.addEventListener('igcRemove', (e) => this.onRemove(e));
1212
});
13-
13+
1414
registerIconFromText(
1515
'cancel',
1616
'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"/></svg>'

samples/inputs/chip/styling/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ export class ChipStyling {
88
constructor() {
99
const chips = document.querySelectorAll('igc-chip[removable]');
1010
chips.forEach(chip => {
11-
chip.addEventListener('igcRemove', this.onRemove);
11+
chip.addEventListener('igcRemove', (e) => this.onRemove(e));
1212
});
13-
13+
1414
registerIconFromText(
1515
'cancel',
1616
'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"/></svg>'

samples/inputs/chip/variants/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export class ChipVariants {
77
constructor() {
88
const chips = document.querySelectorAll('igc-chip[removable]');
99
chips.forEach(chip => {
10-
chip.addEventListener('igcRemove', this.onRemove);
10+
chip.addEventListener('igcRemove', (e) => this.onRemove(e));
1111
});
1212

1313
registerIconFromText(

0 commit comments

Comments
 (0)