Skip to content

Commit

Permalink
fix(core): fix text selection in nested hint (#7647)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirpotekhin authored Jun 7, 2024
1 parent c3993da commit 9b96c73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/core/directives/hint/hint.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class TuiHintComponent<C = any> {
@HostListener('document:click', ['$event.target'])
onClick(target: HTMLElement): void {
if (
(!this.el.nativeElement.contains(target) &&
(!target.closest('tui-hint') &&
!this.hover.el.nativeElement.contains(target)) ||
tuiIsObscured(this.hover.el.nativeElement)
) {
Expand Down

0 comments on commit 9b96c73

Please sign in to comment.