Skip to content

Commit 77cc4d3

Browse files
committed
fix(tooltip): cancel show first if disabled is toggled before tooltip is shown
1 parent 117d639 commit 77cc4d3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -409,12 +409,12 @@ export class IgxTooltipTargetDirective extends IgxToggleActionDirective implemen
409409
* @hidden
410410
*/
411411
public onHide(event?: Event): void {
412-
if (this.tooltipDisabled) {
412+
if (this.target.collapsed) {
413+
this._cancelPendingShow(event);
413414
return;
414415
}
415416

416-
if (this.target.collapsed) {
417-
this._cancelPendingShow(event);
417+
if (this.tooltipDisabled) {
418418
return;
419419
}
420420

0 commit comments

Comments
 (0)