Skip to content

Commit

Permalink
feat(core): enable TuiHint hover when TuiHintManual is null (#9955)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Inkin <[email protected]>
  • Loading branch information
MuhammedSmani and waterplea authored Jan 13, 2025
1 parent 3b8651b commit e0e5861
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions projects/core/directives/hint/hint-manual.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class TuiHintManual extends TuiDriver implements OnChanges {
private readonly stream$ = new BehaviorSubject(false);

@Input()
public tuiHintManual = false;
public tuiHintManual: boolean | null = false;

public readonly type = 'hint';

Expand All @@ -25,6 +25,7 @@ export class TuiHintManual extends TuiDriver implements OnChanges {
}

public ngOnChanges(): void {
this.stream$.next(this.tuiHintManual);
this.stream$.next(!!this.tuiHintManual);
this.hover.enabled = this.tuiHintManual === null;
}
}

0 comments on commit e0e5861

Please sign in to comment.