File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
projects/igniteui-angular/src/lib/action-strip/grid-actions Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 11< ng-container *ngIf ="!asMenuItem ">
22
33 < ng-container *ngIf ="!asMenuItem ">
4- < button igxButton ="icon " igxRipple (click) ="handleClick($event) ">
4+ < button igxButton ="icon " igxRipple (click) ="handleClick($event) " (mousedown) =" preventEvent($event) " >
55 < igx-icon *ngIf ="iconSet " [fontSet] ="iconSet " [name] ="iconName "> {{iconName}}</ igx-icon >
66 < igx-icon *ngIf ="!iconSet " > {{iconName}}</ igx-icon >
77 </ button >
1414 < label *ngIf ='asMenuItem ' igxLabel > {{labelText}}</ label >
1515 </ div >
1616 </ ng-container >
17- </ ng-container >
17+ </ ng-container >
Original file line number Diff line number Diff line change @@ -69,4 +69,14 @@ export class IgxGridActionButtonComponent {
6969 public handleClick ( event ) {
7070 this . onActionClick . emit ( event ) ;
7171 }
72+
73+ /**
74+ * @hidden @internal
75+ */
76+ public preventEvent ( event ) {
77+ if ( event ) {
78+ event . stopPropagation ( ) ;
79+ event . preventDefault ( ) ;
80+ }
81+ }
7282}
You can’t perform that action at this time.
0 commit comments