Skip to content

Commit

Permalink
fix(module:tooltip): detect trigger change (#6470)
Browse files Browse the repository at this point in the history
close #6469
Co-authored-by: CK <chenkai4dev@163.com>
  • Loading branch information
CK110 authored Mar 22, 2021
1 parent 9382ab5 commit e8e7dc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/tooltip/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ export abstract class NzTooltipBaseDirective implements OnChanges, OnDestroy, Af
) {}

ngOnChanges(changes: SimpleChanges): void {
const { specificTrigger } = changes;
const { trigger } = changes;

if (specificTrigger && !specificTrigger.isFirstChange()) {
if (trigger && !trigger.isFirstChange()) {
this.registerTriggers();
}

Expand Down

0 comments on commit e8e7dc3

Please sign in to comment.