Skip to content

Commit 75222f2

Browse files
authored
Merge pull request #8214 from IgniteUI/didimmova/hint-stop-focus-7489
fix(input-group): prevent focusing input on hint click
2 parents 300904f + 830652e commit 75222f2

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
@@ -184,6 +184,10 @@ export class IgxInputGroupComponent extends DisplayDensityBase
184184
}
185185
}
186186

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

0 commit comments

Comments
 (0)