Skip to content

Commit 29c673d

Browse files
committed
fix(tooltip): check if target is instance of IgxTooltipDirective
1 parent 10b04d0 commit 29c673d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/igniteui-angular/src/lib/directives/tooltip/tooltip-target.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export class IgxTooltipTargetDirective extends IgxToggleActionDirective implemen
100100
*/
101101
@Input('igxTooltipTarget')
102102
public override set target(target: any) {
103-
if (target !== null && target !== '') {
103+
if (target instanceof IgxTooltipDirective) {
104104
this._target = target;
105105
}
106106
}

0 commit comments

Comments
 (0)