Skip to content

Commit

Permalink
fix(core): disable isObscured check for HintPointer (#7016)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirpotekhin authored Mar 18, 2024
1 parent af7e3ae commit d3cd092
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion projects/core/directives/hint/hint-hover.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ export class TuiHintHoverDirective extends TuiDriver {
),
).pipe(
filter(() => this.enabled),
map(value => value && !tuiIsObscured(this.el.nativeElement)),
map(
value =>
value &&
(this.el.nativeElement.hasAttribute('tuiHintPointer') ||
!tuiIsObscured(this.el.nativeElement)),
),
tap(visible => {
this.visible = visible;
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ import {encapsulation} from '@demo/emulate/encapsulation';
changeDetection,
})
export class TuiPieChartExample2 {
readonly value = [13769, 12367, 10172, 3018, 2592];
readonly value = [100, 200, 300, 400, 500];
readonly labels = ['Food', 'Cafe', 'Open Source', 'Taxi', 'Other'];
}

0 comments on commit d3cd092

Please sign in to comment.