Skip to content

Commit 3302350

Browse files
committed
fix(tooltip): check if target is instance of IgxTooltipDirective
1 parent 69ac546 commit 3302350

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
@@ -99,7 +99,7 @@ export class IgxTooltipTargetDirective extends IgxToggleActionDirective implemen
9999
*/
100100
@Input('igxTooltipTarget')
101101
public override set target(target: any) {
102-
if (target !== null && target !== '') {
102+
if (target instanceof IgxTooltipDirective) {
103103
this._target = target;
104104
}
105105
}

0 commit comments

Comments
 (0)