Skip to content

Commit 8d34028

Browse files
authored
Merge pull request #8215 from IgniteUI/didimmova/hint-stop-focus-10.1.x
fix(input-group): prevent focusing input on hint click
2 parents 96703c2 + 3fd5417 commit 8d34028

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

projects/igniteui-angular/src/lib/input-group/input-group.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<div class="igx-input-group__border" *ngIf="hasBorder"></div>
66

7-
<div class="igx-input-group__hint">
7+
<div class="igx-input-group__hint" (click)="hintClickHandler($event)">
88
<ng-content select="igx-hint, [igxHint]"></ng-content>
99
</div>
1010

projects/igniteui-angular/src/lib/input-group/input-group.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ export class IgxInputGroupComponent extends DisplayDensityBase
185185
}
186186
}
187187

188+
hintClickHandler(event) {
189+
event.stopPropagation();
190+
}
191+
188192
/**
189193
* An @Input property that sets how the input will be styled.
190194
* Allowed values of type IgxInputGroupType.

0 commit comments

Comments
 (0)