File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed
Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff 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>'
Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff 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>'
Original file line number Diff line number Diff 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>'
Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments